From c3f0489235f6d0e9cf9d6c302d7b086b4f9968dc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 28 Apr 2018 22:25:21 +0300 Subject: Fix try_rmfile() to remove symlinks on Windows --- libbutl/filesystem.mxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbutl/filesystem.mxx') 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 -- cgit v1.1