diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-18 17:27:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-18 17:27:25 +0200 |
commit | c828e2bb39f711c82c3b816f57ddde9ab29bdb20 (patch) | |
tree | b1d9361660a6fe3f0f4340c35c3699feb066dc75 /butl/filesystem | |
parent | 2f6392f4b0c3cc6caffbfac0911dba99f5094887 (diff) |
Move path_mtime to filesystem, rename file_mtime, follow symlinks
Diffstat (limited to 'butl/filesystem')
-rw-r--r-- | butl/filesystem | 11 |
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. // |