mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-17 03:34:54 +02:00
Plugins: relocate bundled skill assets
This commit is contained in:
@@ -24,3 +24,12 @@ export function removeFileIfExists(filePath) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function removePathIfExists(filePath) {
|
||||
try {
|
||||
fs.rmSync(filePath, { recursive: true, force: true });
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user