nodejsscript • Docs
nodejsscript / s / cp
Copies files. The wildcard *
is accepted.
Available options:
- -f
: force (default behavior)
- -n
: no-clobber
- -u
: only copy if source is newer than dest
- -r
, -R: recursive
- -L
: follow symlinks
- -P
: don't follow symlinks
The source.
The destination.
cp(
options
,source
,dest
):ShellString
Copies files. The wildcard *
is accepted.
• options: string
Available options:
- -f
: force (default behavior)
- -n
: no-clobber
- -u
: only copy if source is newer than dest
- -r
, -R
: recursive
- -L
: follow symlinks
- -P
: don't follow symlinks
• source: string
| string
[]
The source.
• dest: string
The destination.
Object with shell exit code, stderr and stdout.
Object with shell exit code, stderr and stdout.
Available options:
- -f
: force (default behavior)
- -n
: no-clobber
- -u
: only copy if source is newer than dest
- -r
, -R: recursive
- -L
: follow symlinks
- -P
: don't follow symlinks
The source.
The destination.
cp(
source
,dest
):ShellString
Copies files. The wildcard *
is accepted.
• source: string
| string
[]
The source.
• dest: string
The destination.
Object with shell exit code, stderr and stdout.
Object with shell exit code, stderr and stdout.
Available options:
- -f
: force (default behavior)
- -n
: no-clobber
- -u
: only copy if source is newer than dest
- -r
, -R: recursive
- -L
: follow symlinks
- -P
: don't follow symlinks
The source.
The destination.