diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:17 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:17 +0000 |
commit | 878acbee14849b763d8c6eb035a151b444580158 (patch) | |
tree | f306e74f9cf019d04cf46a0ac7841a1eeafaa361 /libs/pbd | |
parent | e26e59b00634d5a66f39e40dea71d56a8dea0f2a (diff) |
Make PBD::sys::exists_and_writable take a string instead of sys::path
git-svn-id: svn://localhost/ardour2/branches/3.0@12864 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/filesystem.cc | 4 | ||||
-rw-r--r-- | libs/pbd/pbd/filesystem.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index e2b8b37ba7..105af6ea32 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -94,7 +94,7 @@ exists (const path & p) } bool -exists_and_writable (const path & p) +exists_and_writable (const std::string & p) { /* writable() really reflects the whole folder, but if for any reason the session state file can't be written to, still @@ -103,7 +103,7 @@ exists_and_writable (const path & p) struct stat statbuf; - if (g_stat (p.to_string().c_str(), &statbuf) != 0) { + if (g_stat (p.c_str(), &statbuf) != 0) { /* doesn't exist - not writable */ return false; } else { diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index 74baaa3707..ee376df33a 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -121,7 +121,7 @@ bool exists(const path & p); /// @return true if path at p exists and is writable, false otherwise -bool exists_and_writable(const path & p); +bool exists_and_writable(const std::string & p); /// @return true if path at p is a directory. bool is_directory(const path & p); |