vscode-fs 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -257,7 +257,7 @@ async function createNodeFileSystem() {
|
|
|
257
257
|
writeFile: (uri, content) => wrap(() => fs.promises.writeFile(uri.fsPath, content)),
|
|
258
258
|
delete: (uri, options) => wrap(async () => {
|
|
259
259
|
if (options?.useTrash) await trash(uri.fsPath);
|
|
260
|
-
else await fs.promises.rm(uri.fsPath, { recursive: options?.recursive });
|
|
260
|
+
else await fs.promises.rm(uri.fsPath, { recursive: options?.recursive ?? false });
|
|
261
261
|
}),
|
|
262
262
|
rename: (source, target, options) => wrap(async () => {
|
|
263
263
|
if (options?.overwrite === false) await ensureTargetNotExists(target.fsPath);
|
package/dist/index.mjs
CHANGED
|
@@ -256,7 +256,7 @@ async function createNodeFileSystem() {
|
|
|
256
256
|
writeFile: (uri, content) => wrap(() => fs.promises.writeFile(uri.fsPath, content)),
|
|
257
257
|
delete: (uri, options) => wrap(async () => {
|
|
258
258
|
if (options?.useTrash) await trash(uri.fsPath);
|
|
259
|
-
else await fs.promises.rm(uri.fsPath, { recursive: options?.recursive });
|
|
259
|
+
else await fs.promises.rm(uri.fsPath, { recursive: options?.recursive ?? false });
|
|
260
260
|
}),
|
|
261
261
|
rename: (source, target, options) => wrap(async () => {
|
|
262
262
|
if (options?.overwrite === false) await ensureTargetNotExists(target.fsPath);
|
package/package.json
CHANGED