(dereference? copy-sync-options)
Dereference symlinks
Dereference symlinks
(error-on-exist? copy-sync-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-sync-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
Function to filter copied files/directories. Return `true` to copy the item, `false` to ignore it. **Parameters:** - `source`: `string` - `destination`: `string` **Returns:** `boolean`
(force? copy-sync-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-sync-options)
Modifiers for copy operation. See mode
flag of {@link copyFileSync()}
Modifiers for copy operation. See `mode` flag of {@link copyFileSync()}
(preserve-timestamps? copy-sync-options)
When true
timestamps from src
will
be preserved.
When `true` timestamps from `src` will be preserved.
(recursive? copy-sync-options)
Copy directories recursively.
Copy directories recursively.
(set-dereference! copy-sync-options value)
Dereference symlinks
Dereference symlinks
(set-error-on-exist! copy-sync-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-sync-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-sync-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-sync-options value)
When true
timestamps from src
will
be preserved.
When `true` timestamps from `src` will be preserved.
(set-recursive! copy-sync-options value)
Copy directories recursively.
Copy directories recursively.
(set-verbatim-symlinks! copy-sync-options value)
When true, path resolution for symlinks will be skipped
When true, path resolution for symlinks will be skipped
(verbatim-symlinks? copy-sync-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