diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-04-28 22:25:21 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-04-28 22:25:21 +0300 |
commit | c3f0489235f6d0e9cf9d6c302d7b086b4f9968dc (patch) | |
tree | 79cd4c5122b1290fcddf3980b027ae21e456863c /libbutl/filesystem.mxx | |
parent | eddbd4b42e28179143d5b551cd909945edfd6f1a (diff) |
Fix try_rmfile() to remove symlinks on Windows
Diffstat (limited to 'libbutl/filesystem.mxx')
-rw-r--r-- | libbutl/filesystem.mxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbutl/filesystem.mxx b/libbutl/filesystem.mxx index fbfc0aa..ff9a4a6 100644 --- a/libbutl/filesystem.mxx +++ b/libbutl/filesystem.mxx @@ -194,6 +194,9 @@ LIBBUTL_MODEXPORT namespace butl // it does not exist. Unless ignore_error is true, all other // errors are reported by throwing std::system_error. // + // Note that if it is known that the path refers to a symlink, then usage of + // try_rmsymlink() function must be preferred, as a more efficient one. + // enum class rmfile_status {success, not_exist}; // Note that on Windows the read-only attribute is reset prior to the file |