diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:19 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:19 +0000 |
commit | 6b1659a29bb9b5c4a31cb0aec371842df0585034 (patch) | |
tree | d9b5d003963f42b6c99d18b499c74870e6b92344 /libs/pbd/pbd | |
parent | 878acbee14849b763d8c6eb035a151b444580158 (diff) |
Move file utility function into pbd/file_utils.h and into PBD namespace
git-svn-id: svn://localhost/ardour2/branches/3.0@12865 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r-- | libs/pbd/pbd/file_utils.h | 3 | ||||
-rw-r--r-- | libs/pbd/pbd/filesystem.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libs/pbd/pbd/file_utils.h b/libs/pbd/pbd/file_utils.h index 184e644bba..72696f6abd 100644 --- a/libs/pbd/pbd/file_utils.h +++ b/libs/pbd/pbd/file_utils.h @@ -127,6 +127,9 @@ bool path_is_within (const std::string &, std::string); */ bool equivalent_paths (const std::string &p1, const std::string &p2); +/// @return true if path at p exists and is writable, false otherwise +bool exists_and_writable(const std::string & p); + } // namespace PBD #endif diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index ee376df33a..3df168ea84 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -119,10 +119,6 @@ inline path operator/ (const path& lhs, const path& rhs) /// @return true if path at p exists bool exists(const path & p); - -/// @return true if path at p exists and is writable, false otherwise -bool exists_and_writable(const std::string & p); - /// @return true if path at p is a directory. bool is_directory(const path & p); |