diff options
author | Marcos Bjoerkelund <marcosbc@users.noreply.github.com> | 2022-02-15 15:14:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 15:14:04 +0300 |
commit | cee626d0f5d7297bb7476b91cf2b0c8612f29751 (patch) | |
tree | fd5c789653897c71a3dee49cb796b2aec6eab4f6 /doc/api/fs.md | |
parent | 337e70ddb78a2e9c9d1ef390a50569c21379c2bb (diff) |
fs: support copy of relative links with cp and cpSync
Fixes: https://github.com/nodejs/node/issues/41693
PR-URL: https://github.com/nodejs/node/pull/41819
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r-- | doc/api/fs.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index d6643c9ddf3..22f276cfe76 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -876,6 +876,11 @@ try { <!-- YAML added: v16.7.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41819 + description: Accepts an additional `verbatimSymlinks` option to specify + whether to perform path resolution for symlinks. --> > Stability: 1 - Experimental @@ -896,6 +901,8 @@ added: v16.7.0 * `preserveTimestamps` {boolean} When `true` timestamps from `src` will be preserved. **Default:** `false`. * `recursive` {boolean} copy directories recursively **Default:** `false` + * `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will + be skipped. **Default:** `false` * Returns: {Promise} Fulfills with `undefined` upon success. Asynchronously copies the entire directory structure from `src` to `dest`, @@ -2095,6 +2102,10 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); added: v16.7.0 changes: - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41819 + description: Accepts an additional `verbatimSymlinks` option to specify + whether to perform path resolution for symlinks. + - version: REPLACEME pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2119,6 +2130,8 @@ changes: * `preserveTimestamps` {boolean} When `true` timestamps from `src` will be preserved. **Default:** `false`. * `recursive` {boolean} copy directories recursively **Default:** `false` + * `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will + be skipped. **Default:** `false` * `callback` {Function} Asynchronously copies the entire directory structure from `src` to `dest`, @@ -4858,6 +4871,11 @@ copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); <!-- YAML added: v16.7.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/41819 + description: Accepts an additional `verbatimSymlinks` option to specify + whether to perform path resolution for symlinks. --> > Stability: 1 - Experimental @@ -4877,6 +4895,8 @@ added: v16.7.0 * `preserveTimestamps` {boolean} When `true` timestamps from `src` will be preserved. **Default:** `false`. * `recursive` {boolean} copy directories recursively **Default:** `false` + * `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will + be skipped. **Default:** `false` Synchronously copies the entire directory structure from `src` to `dest`, including subdirectories and files. |