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