diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-28 18:04:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-28 18:04:08 +0200 |
commit | 8a82f67e2cb3366ab6988bcb56eb06c1d56fdc5d (patch) | |
tree | 5fa3a73d0769d9426fc647228cddd19fd52a1fc9 /build2/filesystem.hxx | |
parent | 9c8844e80d493eceaa706c1e4cdf983f7e32c59d (diff) |
Use rmsymlink() to portably remove symlinks
Diffstat (limited to 'build2/filesystem.hxx')
-rw-r--r-- | build2/filesystem.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx index 4c118a1..bbdc560 100644 --- a/build2/filesystem.hxx +++ b/build2/filesystem.hxx @@ -76,6 +76,9 @@ namespace build2 return rmfile (f, f, verbosity); } + fs_status<rmfile_status> + rmsymlink (const path&, bool dir, uint16_t verbosity); + // Similar to rmfile() but for directories (note: not -r). // using rmdir_status = butl::rmdir_status; |