aboutsummaryrefslogtreecommitdiff
path: root/butl/filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'butl/filesystem')
-rw-r--r--butl/filesystem11
1 files changed, 10 insertions, 1 deletions
diff --git a/butl/filesystem b/butl/filesystem
index 10f61f2..18ba48e 100644
--- a/butl/filesystem
+++ b/butl/filesystem
@@ -8,9 +8,18 @@
#include <sys/types.h> // mode_t
#include <butl/path>
+#include <butl/timestamp>
namespace butl
{
+ // Return timestamp_nonexistent if the entry at the specified path
+ // does not exist or is not a path. All other errors are reported
+ // by throwing std::system_error. Note that this function resolves
+ // symlinks.
+ //
+ timestamp
+ file_mtime (const path&);
+
// Return true if the path is to an existing directory. Note that
// this function resolves symlinks.
//
@@ -48,7 +57,7 @@ namespace butl
rmdir_status
try_rmdir (const path&);
- // Try to remove the file (or symbolic link) returning not_exist if
+ // Try to remove the file (or symlinks) returning not_exist if
// it does not exist. All other errors are reported by throwing
// std::system_error.
//