From f98262e37f608330fcfce799dcacc6fbacac8f8a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 23 Apr 2018 14:25:58 +0200 Subject: Implement forwarded configurations and backlinking --- build2/filesystem.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build2/filesystem.hxx') 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 (verbosity)); } + inline fs_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 (verbosity)); } + inline fs_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 -- cgit v1.1