From 6cd46fa3ef4b12f35a60f1a33c7f038c06b5fc71 Mon Sep 17 00:00:00 2001 From: dubiousjim Date: Mon, 2 Mar 2020 10:19:42 -0500 Subject: Cleanup comments and internal variables (#4205) --- cli/js/dir.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'cli/js/dir.ts') diff --git a/cli/js/dir.ts b/cli/js/dir.ts index eea2ef691..bc62be83f 100644 --- a/cli/js/dir.ts +++ b/cli/js/dir.ts @@ -2,19 +2,25 @@ import { sendSync } from "./dispatch_json.ts"; /** - * `cwd()` Return a string representing the current working directory. - * If the current directory can be reached via multiple paths - * (due to symbolic links), `cwd()` may return - * any one of them. - * throws `NotFound` exception if directory not available + * **UNSTABLE**: maybe needs permissions. + * + * Return a string representing the current working directory. + * + * If the current directory can be reached via multiple paths (due to symbolic + * links), `cwd()` may return any one of them. + * + * Throws `Deno.errors.NotFound` if directory not available. */ export function cwd(): string { return sendSync("op_cwd"); } /** - * `chdir()` Change the current working directory to path. - * throws `NotFound` exception if directory not available + * **UNSTABLE**: maybe needs permissions. + * + * Change the current working directory to the specified path. + * + * Throws `Deno.errors.NotFound` if directory not available. */ export function chdir(directory: string): void { sendSync("op_chdir", { directory }); -- cgit v1.2.3