aboutsummaryrefslogtreecommitdiff
path: root/build2/filesystem.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-23 14:25:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-26 09:38:09 +0200
commitf98262e37f608330fcfce799dcacc6fbacac8f8a (patch)
tree080ef26d80ee6419ef3a2f27434d75136f502cb2 /build2/filesystem.hxx
parentc414abe13450e2b4e204f6368ba83c8916de1ebd (diff)
Implement forwarded configurations and backlinking
Diffstat (limited to 'build2/filesystem.hxx')
-rw-r--r--build2/filesystem.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx
index fe4473c..4c118a1 100644
--- a/build2/filesystem.hxx
+++ b/build2/filesystem.hxx
@@ -70,6 +70,12 @@ namespace build2
return rmfile (f, f, static_cast<uint16_t> (verbosity));
}
+ inline fs_status<rmfile_status>
+ rmfile (const path& f, uint16_t verbosity) // Overload (verb_never).
+ {
+ return rmfile (f, f, verbosity);
+ }
+
// Similar to rmfile() but for directories (note: not -r).
//
using rmdir_status = butl::rmdir_status;
@@ -84,6 +90,12 @@ namespace build2
return rmdir (d, d, static_cast<uint16_t> (verbosity));
}
+ inline fs_status<rmdir_status>
+ rmdir (const dir_path& d, uint16_t verbosity) // Overload (verb_never).
+ {
+ return rmdir (d, d, verbosity);
+ }
+
// Remove the directory recursively and print the standard diagnostics
// starting from the specified verbosity level. Note that this function
// returns not_empty if we try to remove a working directory. If the dir