Nim/lib/posix
Roman Inflianskas e9b360c5df
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>
2021-02-04 18:57:41 +01:00
..
epoll.nim improve epoll docs (#15137) 2020-08-01 11:30:51 +02:00
inotify.nim Add iterator inotify_events which is *almost always* needed logic for (#15152) 2020-08-08 07:26:20 +02:00
kqueue.nim remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
linux.nim fix #12958 (#16565) 2021-01-03 14:00:22 +01:00
posix.nim stdlib/os: handle symlinks in copy/move functions (#16709) 2021-02-04 18:57:41 +01:00
posix_freertos_consts.nim Fixing issue #15302 -- lwip doesn't support signals (#15303) 2020-09-14 08:57:49 +02:00
posix_haiku.nim change 'iff' to 'if' to stop "corrections" once and for all (#14182) 2020-05-01 15:54:03 +02:00
posix_linux_amd64.nim Linux updates (#14170) 2020-05-04 19:23:49 +02:00
posix_linux_amd64_consts.nim Revert "fix #15623 (#16009)" 2020-11-17 18:54:14 +00:00
posix_macos_amd64.nim Unsigned iovlen (#15216) 2020-08-22 23:14:50 +02:00
posix_nintendoswitch.nim Unsigned iovlen (#15216) 2020-08-22 23:14:50 +02:00
posix_nintendoswitch_consts.nim Make range checks in semConv (#7164) 2019-05-10 11:10:11 +02:00
posix_openbsd_amd64.nim Unsigned iovlen (#15216) 2020-08-22 23:14:50 +02:00
posix_other.nim Fixing issue #15302 -- lwip doesn't support signals (#15303) 2020-09-14 08:57:49 +02:00
posix_other_consts.nim Make file descriptors from stdlib non-inheritable by default (#13201) 2020-04-20 17:09:59 +02:00
posix_utils.nim Add posix_utils.osReleaseFile (#16452) 2021-01-04 15:21:36 +01:00
termios.nim Deprecate DCE:on (#13839) 2020-04-02 02:58:43 +02:00