diff options
author | Roman Inflianskas <rominf@users.noreply.github.com> | 2021-02-04 09:57:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 18:57:41 +0100 |
commit | e9b360c5dfac2331a57b1cc3310fc85fe65fe7af (patch) | |
tree | f9069b880b52ea6f81a15b2128e34c6227db9e0c /lib/pure/pathnorm.nim | |
parent | bb85bc7ebc68e240f955015cd80f76ac424c16b5 (diff) | |
download | Nim-e9b360c5dfac2331a57b1cc3310fc85fe65fe7af.tar.gz |
stdlib/os: handle symlinks in copy/move functions (#16709)
* stdlib/os: handle symlinks in copy/move functions - Added optional `options` argument to `copyFile`, `copyFileToDir`, and `copyFileWithPermissions`. By default, symlinks are followed (copy files symlinks point to). - `copyDir` and `copyDirWithPermissions` copy symlinks as symlinks (instead of skipping them as it was before). - `moveFile` and `moveDir` move symlinks as symlinks (instead of skipping them sometimes as it was before). - Added optional `followSymlinks` argument to `setFilePermissions`. See also: https://github.com/nim-lang/RFCs/issues/319 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 (second iteration) Skip symlinks on Windows. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Diffstat (limited to 'lib/pure/pathnorm.nim')
0 files changed, 0 insertions, 0 deletions