return -1;
}
- _writable = exists_and_writable (sys::path (_path));
+ _writable = sys::exists_and_writable (_path);
if (!session_template.empty()) {
std::string in_path = session_template_dir_to_file (session_template);
set_dirty();
- _writable = exists_and_writable (xmlpath);
+ _writable = sys::exists_and_writable (xmlpath.to_string());
if (!state_tree->read (xmlpath.to_string())) {
error << string_compose(_("Could not understand ardour file %1"), xmlpath.to_string()) << endmsg;
}
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
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 {
/// @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);