From c828e2bb39f711c82c3b816f57ddde9ab29bdb20 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 17:27:25 +0200 Subject: Move path_mtime to filesystem, rename file_mtime, follow symlinks --- butl/filesystem | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'butl/filesystem') diff --git a/butl/filesystem b/butl/filesystem index 10f61f2..18ba48e 100644 --- a/butl/filesystem +++ b/butl/filesystem @@ -8,9 +8,18 @@ #include // mode_t #include +#include 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. // -- cgit v1.1