aboutsummaryrefslogtreecommitdiff
path: root/build/filesystem
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-20 13:21:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-20 13:21:18 +0200
commiteaaa82bd9c1e24a83dcea3857f5fd75d0dfb6de5 (patch)
tree9d849682e5c8fb971382843064ea0c286d753cba /build/filesystem
parentb6e72877a1a26a6ae16961728ee57e45f657f717 (diff)
New consolidated load/match/build loop
Diffstat (limited to 'build/filesystem')
-rw-r--r--build/filesystem13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/filesystem b/build/filesystem
index 8fa76c2..c96e669 100644
--- a/build/filesystem
+++ b/build/filesystem
@@ -11,6 +11,19 @@
namespace build
{
+ // Return true if the path is to an existing directory. Note that
+ // this function resolves symlinks.
+ //
+ bool
+ dir_exists (const path&);
+
+ // Return true if the path is to an existing regular file. Note that
+ // this function resolves symlinks.
+ //
+ bool
+ file_exists (const path&);
+
+
// Note that you should probably use the default mode 0777 and let
// the umask mechanism adjust it to the user's preferences. Errors
// are reported by throwing std::system_error.