diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-03-06 08:34:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 08:34:02 -0500 |
commit | 9a63902db5bc33f3130c7227299cfb3b5be400ae (patch) | |
tree | 2d8215f1e153d5ca20ff608973a1988c589eaa58 /cli/js/read_dir.ts | |
parent | afea9b2edd4becf66bdc6d40a0cb0dbe29267524 (diff) |
Rename readDir -> readdir (#4225)
Diffstat (limited to 'cli/js/read_dir.ts')
-rw-r--r-- | cli/js/read_dir.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/read_dir.ts b/cli/js/read_dir.ts index 43223e015..d8c1a7db8 100644 --- a/cli/js/read_dir.ts +++ b/cli/js/read_dir.ts @@ -18,10 +18,10 @@ function res(response: ReadDirResponse): FileInfo[] { /** Synchronously reads the directory given by `path` and returns an array of * `Deno.FileInfo`. * - * const files = Deno.readDirSync("/"); + * const files = Deno.readdirSync("/"); * * Requires `allow-read` permission. */ -export function readDirSync(path: string): FileInfo[] { +export function readdirSync(path: string): FileInfo[] { return res(sendSync("op_read_dir", { path })); } @@ -29,9 +29,9 @@ export function readDirSync(path: string): FileInfo[] { * * Reads the directory given by `path` and resolves to an array of `Deno.FileInfo`. * - * const files = await Deno.readDir("/"); + * const files = await Deno.readdir("/"); * * Requires `allow-read` permission. */ -export async function readDir(path: string): Promise<FileInfo[]> { +export async function readdir(path: string): Promise<FileInfo[]> { return res(await sendAsync("op_read_dir", { path })); } |