summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authordubiousjim <dubiousjim@gmail.com>2020-03-20 09:46:26 -0400
committerGitHub <noreply@github.com>2020-03-20 09:46:26 -0400
commit69303e21495a14a2c6709f96af364682a485ac21 (patch)
treeb2662cefde16afce58d6dc73e1c243fc9cefa18b /cli/js/lib.deno.ns.d.ts
parent798904b0f2ed0c7284b67bba2f125f406b5850de (diff)
refactor: move code from fs.rs into ops/fs.rs (#4428)
This a complex boring PR that shifts around code (primarily) in cli/fs.rs and cli/ops/fs.rs. The gain of this refactoring is to ease the way for #4188 and #4017, and also to avoid some future development pain. Mostly there is no change in functionality. Except: * squashed bugs where op_utime and op_chown weren't using `resolve_from_cwd` * eliminated the use of the external `remove_dir_all` crate. * op_chmod now only queries metadata to verify file/dir exists on Windows (it will already fail on Unix if it doesn't) * op_chown now verifies the file/dir's existence on Windows like chmod does.
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts20
1 files changed, 10 insertions, 10 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>;