-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_copy.deno.txt
22 lines (15 loc) · 1.68 KB
/
deno_copy.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DENO_COPY
ALTERNATIVES ==> #See cp-file
VERSION ==> #Part of Deno
Deno.copyFile(UPATH, UPATH2)->> WR#Copy contents.
#Creates UPATH2 if does not exist.
Deno.copyFileSync(...) #Same but sync
std/fs/copy.ts
copy(UPATH, UPATH2[, OPTS])->> WR#Copy file or DIR (recursively)
copySync(...) #Symlinks:
# - not followed in UPATH, or in UPATH2/**
# - followed in UPATH2 (not DIR)
OPTS.overwrite #BOOL (def: false)
OPTS.preserveTimestamps #BOOL (def: false). Keep atime|mtime