aboutsummaryrefslogtreecommitdiff
path: root/build2/filesystem.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/filesystem.hxx')
-rw-r--r--build2/filesystem.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx
index 79633af..4ef4caf 100644
--- a/build2/filesystem.hxx
+++ b/build2/filesystem.hxx
@@ -30,6 +30,14 @@ namespace build2
explicit operator bool () const {return v == T::success;}
};
+ // Set the file access and modification times to the current time printing
+ // the standard diagnostics starting from the specified verbosity level. If
+ // the file does not exist and create is true, create it and fail otherwise.
+ // Return true if the file was created and false otherwise.
+ //
+ bool
+ touch (const path&, bool create, uint16_t verbosity = 1);
+
// Create the directory and print the standard diagnostics starting from
// the specified verbosity level.
//