diff options
Diffstat (limited to 'cli/js/ops/fs')
-rw-r--r-- | cli/js/ops/fs/read_dir.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/read_link.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/real_path.ts (renamed from cli/js/ops/fs/realpath.ts) | 4 |
3 files changed, 6 insertions, 6 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> { diff --git a/cli/js/ops/fs/read_link.ts b/cli/js/ops/fs/read_link.ts index 4ac8db3db..bcd27ccb7 100644 --- a/cli/js/ops/fs/read_link.ts +++ b/cli/js/ops/fs/read_link.ts @@ -1,10 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "../dispatch_json.ts"; -export function readlinkSync(path: string): string { +export function readLinkSync(path: string): string { return sendSync("op_read_link", { path }); } -export function readlink(path: string): Promise<string> { +export function readLink(path: string): Promise<string> { return sendAsync("op_read_link", { path }); } diff --git a/cli/js/ops/fs/realpath.ts b/cli/js/ops/fs/real_path.ts index e8a904079..ab95b9583 100644 --- a/cli/js/ops/fs/realpath.ts +++ b/cli/js/ops/fs/real_path.ts @@ -1,10 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "../dispatch_json.ts"; -export function realpathSync(path: string): string { +export function realPathSync(path: string): string { return sendSync("op_realpath", { path }); } -export function realpath(path: string): Promise<string> { +export function realPath(path: string): Promise<string> { return sendAsync("op_realpath", { path }); } |