diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-03-02 10:19:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 10:19:42 -0500 |
commit | 6cd46fa3ef4b12f35a60f1a33c7f038c06b5fc71 (patch) | |
tree | e8ef21a936ebac529a7c8e87681123fbd225ff5f /cli/js/rename.ts | |
parent | 809019dc6e9a80843affc927fa7a52cd41e76471 (diff) |
Cleanup comments and internal variables (#4205)
Diffstat (limited to 'cli/js/rename.ts')
-rw-r--r-- | cli/js/rename.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/js/rename.ts b/cli/js/rename.ts index a689061a2..ec5c18b87 100644 --- a/cli/js/rename.ts +++ b/cli/js/rename.ts @@ -7,7 +7,8 @@ import { sendSync, sendAsync } from "./dispatch_json.ts"; * directories. * * Deno.renameSync("old/path", "new/path"); - */ + * + * Requires `allow-read` and `allow-write` permissions. */ export function renameSync(oldpath: string, newpath: string): void { sendSync("op_rename", { oldpath, newpath }); } @@ -17,7 +18,8 @@ export function renameSync(oldpath: string, newpath: string): void { * when `oldpath` and `newpath` are in different directories. * * await Deno.rename("old/path", "new/path"); - */ + * + * Requires `allow-read` and `allow-write`. */ export async function rename(oldpath: string, newpath: string): Promise<void> { await sendAsync("op_rename", { oldpath, newpath }); } |