summaryrefslogtreecommitdiff
path: root/std/fs/copy.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 /std/fs/copy.ts
parent78e0ae643c8eb9817b3396cf07a263ce9f03fc4c (diff)
make camel case readDir, readLink, realPath (#4995)
Diffstat (limited to 'std/fs/copy.ts')
-rw-r--r--std/fs/copy.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/fs/copy.ts b/std/fs/copy.ts
index d442e46ae..609a8437b 100644
--- a/std/fs/copy.ts
+++ b/std/fs/copy.ts
@@ -109,7 +109,7 @@ async function copySymLink(
options: CopyOptions
): Promise<void> {
await ensureValidCopy(src, dest, options);
- const originSrcFilePath = await Deno.readlink(src);
+ const originSrcFilePath = await Deno.readLink(src);
const type = getFileInfoType(await Deno.lstat(src));
await Deno.symlink(originSrcFilePath, dest, type);
if (options.preserveTimestamps) {
@@ -127,7 +127,7 @@ function copySymlinkSync(
options: CopyOptions
): void {
ensureValidCopySync(src, dest, options);
- const originSrcFilePath = Deno.readlinkSync(src);
+ const originSrcFilePath = Deno.readLinkSync(src);
const type = getFileInfoType(Deno.lstatSync(src));
Deno.symlinkSync(originSrcFilePath, dest, type);
if (options.preserveTimestamps) {
@@ -157,7 +157,7 @@ async function copyDir(
await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime);
}
- for await (const entry of Deno.readdir(src)) {
+ for await (const entry of Deno.readDir(src)) {
const srcPath = path.join(src, entry.name);
const destPath = path.join(dest, path.basename(srcPath as string));
if (entry.isSymlink) {
@@ -185,7 +185,7 @@ function copyDirSync(src: string, dest: string, options: CopyOptions): void {
Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime);
}
- for (const entry of Deno.readdirSync(src)) {
+ for (const entry of Deno.readDirSync(src)) {
assert(entry.name != null, "file.name must be set");
const srcPath = path.join(src, entry.name);
const destPath = path.join(dest, path.basename(srcPath as string));