(dereference? copy-options)
Dereference symlinks
Dereference symlinks
(error-on-exist? copy-options)
When force
is false
, and the destination
exists, throw an error.
When `force` is `false`, and the destination exists, throw an error.
(filter? copy-options source destination)
Function to filter copied files/directories. Return
true
to copy the item, false
to ignore it.
Parameters:
source
: string
destination
: string
Returns: boolean | Promise<boolean>
Function to filter copied files/directories. Return `true` to copy the item, `false` to ignore it. **Parameters:** - `source`: `string` - `destination`: `string` **Returns:** `boolean | Promise<boolean>`
(force? copy-options)
Overwrite existing file or directory. _The copy
operation will ignore errors if you set this to false and the destination
exists. Use the errorOnExist
option to change this behavior.
Overwrite existing file or directory. _The copy operation will ignore errors if you set this to false and the destination exists. Use the `errorOnExist` option to change this behavior.
(mode copy-options)
Modifiers for copy operation. See mode
flag of {@link copyFileSync()}
Modifiers for copy operation. See `mode` flag of {@link copyFileSync()}
(preserve-timestamps? copy-options)
When true
timestamps from src
will
be preserved.
When `true` timestamps from `src` will be preserved.
(recursive? copy-options)
Copy directories recursively.
Copy directories recursively.
(set-dereference! copy-options value)
Dereference symlinks
Dereference symlinks
(set-error-on-exist! copy-options value)
When force
is false
, and the destination
exists, throw an error.
When `force` is `false`, and the destination exists, throw an error.
(set-force! copy-options value)
Overwrite existing file or directory. _The copy
operation will ignore errors if you set this to false and the destination
exists. Use the errorOnExist
option to change this behavior.
Overwrite existing file or directory. _The copy operation will ignore errors if you set this to false and the destination exists. Use the `errorOnExist` option to change this behavior.
(set-mode! copy-options value)
Modifiers for copy operation. See mode
flag of {@link copyFileSync()}
Modifiers for copy operation. See `mode` flag of {@link copyFileSync()}
(set-preserve-timestamps! copy-options value)
When true
timestamps from src
will
be preserved.
When `true` timestamps from `src` will be preserved.
(set-recursive! copy-options value)
Copy directories recursively.
Copy directories recursively.
(set-verbatim-symlinks! copy-options value)
When true, path resolution for symlinks will be skipped
When true, path resolution for symlinks will be skipped
(verbatim-symlinks? copy-options)
When true, path resolution for symlinks will be skipped
When true, path resolution for symlinks will be skipped
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close