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 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vscode-fs",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "description": "VSCode like simple、serializable and cross-platform file system utilities.",
6
6
  "author": "Naily Zero <zero@naily.cc> (https://naily.cc)",
7
7
  "license": "MIT",