summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs/remove.ts
diff options
context:
space:
mode:
authorcrowlKats <crowlkats@gmail.com>2020-03-13 10:22:22 +0100
committerGitHub <noreply@github.com>2020-03-13 10:22:22 +0100
commite435c2be158ce8657dbff0664b6db222fe4e586c (patch)
treeb0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/ops/fs/remove.ts
parent3ac642c183981a366e1db565c16b81f864b07ee4 (diff)
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/ops/fs/remove.ts')
-rw-r--r--cli/js/ops/fs/remove.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/cli/js/ops/fs/remove.ts b/cli/js/ops/fs/remove.ts
index 565035793..d5af82f9b 100644
--- a/cli/js/ops/fs/remove.ts
+++ b/cli/js/ops/fs/remove.ts
@@ -2,29 +2,13 @@
import { sendSync, sendAsync } from "../dispatch_json.ts";
export interface RemoveOptions {
- /** Defaults to `false`. If set to `true`, path will be removed even if
- * it's a non-empty directory. */
recursive?: boolean;
}
-/** Synchronously removes the named file or directory. Throws error if
- * permission denied, path not found, or path is a non-empty directory and
- * the `recursive` option isn't set to `true`.
- *
- * Deno.removeSync("/path/to/dir/or/file", { recursive: false });
- *
- * Requires `allow-write` permission. */
export function removeSync(path: string, options: RemoveOptions = {}): void {
sendSync("op_remove", { path, recursive: !!options.recursive });
}
-/** Removes the named file or directory. Throws error if permission denied,
- * path not found, or path is a non-empty directory and the `recursive`
- * option isn't set to `true`.
- *
- * await Deno.remove("/path/to/dir/or/file", { recursive: false });
- *
- * Requires `allow-write` permission. */
export async function remove(
path: string,
options: RemoveOptions = {}