Files
Nim/tests/stdlib
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
..
2020-12-27 14:45:57 +01:00
2020-10-29 18:12:14 +01:00
2020-10-30 09:55:21 +01:00
2020-09-21 12:21:05 +02:00
2020-11-13 16:15:13 +08:00
2020-12-28 14:13:21 +01:00
2020-11-05 14:00:49 +01:00
2020-11-04 01:24:40 -05:00
2021-01-02 20:28:59 +01:00
2020-03-23 15:47:10 +01:00
2021-01-07 19:16:26 +01:00
2020-11-24 19:06:41 +01:00
2020-12-28 14:13:21 +01:00
2020-04-03 09:03:13 +02:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2021-01-05 20:51:51 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2021-01-29 15:14:19 +01:00
2020-10-29 17:32:56 +01:00
2021-02-01 13:31:04 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2020-12-29 13:27:08 +01:00
2020-11-23 19:53:57 +01:00
2020-12-27 14:45:57 +01:00
2020-12-27 14:45:57 +01:00
2019-05-16 21:06:04 +02:00
2021-01-15 18:56:38 -08:00
2020-12-28 14:13:21 +01:00
2020-11-24 19:06:41 +01:00
2017-05-04 22:25:29 +02:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2021-01-22 19:51:11 +01:00
2020-12-10 07:58:42 +01:00
2021-02-02 07:04:30 +01:00
2020-10-18 12:57:13 -04:00
2020-12-28 14:13:21 +01:00
2020-11-24 19:06:41 +01:00
2020-11-13 08:11:00 +01:00
2018-12-11 21:23:21 +01:00
2020-11-24 19:06:41 +01:00
2020-12-28 14:13:21 +01:00
2020-11-24 19:06:41 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2021-02-02 18:11:59 -08:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2020-07-12 03:31:03 -04:00
2020-12-28 14:13:21 +01:00
2020-11-24 19:06:41 +01:00
2020-12-28 14:13:21 +01:00
2020-10-18 12:57:13 -04:00
2018-04-30 11:16:56 +02:00
2020-12-28 14:13:21 +01:00