diff options
Diffstat (limited to 'cli/js')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 20 | ||||
-rw-r--r-- | cli/js/ops/fs/link.ts | 8 | ||||
-rw-r--r-- | cli/js/ops/fs/symlink.ts | 12 |
3 files changed, 20 insertions, 20 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 4302d5ca0..33d89190c 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1291,25 +1291,25 @@ declare namespace Deno { // @url js/link.d.ts - /** Creates `newname` as a hard link to `oldname`. + /** Creates `newpath` as a hard link to `oldpath`. * * Deno.linkSync("old/name", "new/name"); * * Requires `allow-read` and `allow-write` permissions. */ - export function linkSync(oldname: string, newname: string): void; + export function linkSync(oldpath: string, newpath: string): void; - /** Creates `newname` as a hard link to `oldname`. + /** Creates `newpath` as a hard link to `oldpath`. * * await Deno.link("old/name", "new/name"); * * Requires `allow-read` and `allow-write` permissions. */ - export function link(oldname: string, newname: string): Promise<void>; + export function link(oldpath: string, newpath: string): Promise<void>; // @url js/symlink.d.ts /** **UNSTABLE**: `type` argument type may be changed to `"dir" | "file"`. * - * Creates `newname` as a symbolic link to `oldname`. The type argument can be + * Creates `newpath` as a symbolic link to `oldpath`. The type argument can be * set to `dir` or `file`. Is only available on Windows and ignored on other * platforms. * @@ -1317,14 +1317,14 @@ declare namespace Deno { * * Requires `allow-read` and `allow-write` permissions. */ export function symlinkSync( - oldname: string, - newname: string, + oldpath: string, + newpath: string, type?: string ): void; /** **UNSTABLE**: `type` argument may be changed to "dir" | "file" * - * Creates `newname` as a symbolic link to `oldname`. The type argument can be + * Creates `newpath` as a symbolic link to `oldpath`. The type argument can be * set to `dir` or `file`. Is only available on Windows and ignored on other * platforms. * @@ -1332,8 +1332,8 @@ declare namespace Deno { * * Requires `allow-read` and `allow-write` permissions. */ export function symlink( - oldname: string, - newname: string, + oldpath: string, + newpath: string, type?: string ): Promise<void>; diff --git a/cli/js/ops/fs/link.ts b/cli/js/ops/fs/link.ts index 24a874d47..92fb58834 100644 --- a/cli/js/ops/fs/link.ts +++ b/cli/js/ops/fs/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 linkSync(oldname: string, newname: string): void { - sendSync("op_link", { oldname, newname }); +export function linkSync(oldpath: string, newpath: string): void { + sendSync("op_link", { oldpath, newpath }); } -export async function link(oldname: string, newname: string): Promise<void> { - await sendAsync("op_link", { oldname, newname }); +export async function link(oldpath: string, newpath: string): Promise<void> { + await sendAsync("op_link", { oldpath, newpath }); } diff --git a/cli/js/ops/fs/symlink.ts b/cli/js/ops/fs/symlink.ts index ad49bfdd7..4f9c85f7b 100644 --- a/cli/js/ops/fs/symlink.ts +++ b/cli/js/ops/fs/symlink.ts @@ -4,23 +4,23 @@ import * as util from "../../util.ts"; import { build } from "../../build.ts"; export function symlinkSync( - oldname: string, - newname: string, + oldpath: string, + newpath: string, type?: string ): void { if (build.os === "win" && type) { return util.notImplemented(); } - sendSync("op_symlink", { oldname, newname }); + sendSync("op_symlink", { oldpath, newpath }); } export async function symlink( - oldname: string, - newname: string, + oldpath: string, + newpath: string, type?: string ): Promise<void> { if (build.os === "win" && type) { return util.notImplemented(); } - await sendAsync("op_symlink", { oldname, newname }); + await sendAsync("op_symlink", { oldpath, newpath }); } |