summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs/read_dir.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-29 16:39:37 -0400
committerGitHub <noreply@github.com>2020-04-29 16:39:37 -0400
commitbc792c02674cc22459a3016b271f9c5b70e9d573 (patch)
tree44636cedddd7d55638733db018b04bf18f22e812 /cli/js/ops/fs/read_dir.ts
parent78e0ae643c8eb9817b3396cf07a263ce9f03fc4c (diff)
make camel case readDir, readLink, realPath (#4995)
Diffstat (limited to 'cli/js/ops/fs/read_dir.ts')
-rw-r--r--cli/js/ops/fs/read_dir.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/ops/fs/read_dir.ts b/cli/js/ops/fs/read_dir.ts
index 7d65fed48..1e8d79edc 100644
--- a/cli/js/ops/fs/read_dir.ts
+++ b/cli/js/ops/fs/read_dir.ts
@@ -16,11 +16,11 @@ function res(response: ReadDirResponse): DirEntry[] {
return response.entries;
}
-export function readdirSync(path: string): Iterable<DirEntry> {
+export function readDirSync(path: string): Iterable<DirEntry> {
return res(sendSync("op_read_dir", { path }))[Symbol.iterator]();
}
-export function readdir(path: string): AsyncIterable<DirEntry> {
+export function readDir(path: string): AsyncIterable<DirEntry> {
const array = sendAsync("op_read_dir", { path }).then(res);
return {
async *[Symbol.asyncIterator](): AsyncIterableIterator<DirEntry> {