From eaaa82bd9c1e24a83dcea3857f5fd75d0dfb6de5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Mar 2015 13:21:18 +0200 Subject: New consolidated load/match/build loop --- build/filesystem | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build/filesystem') 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. -- cgit v1.1