Move ARDOUR::touch_file to pbd/file_utils.h

This commit is contained in:
Tim Mayberry 2015-07-26 12:07:41 +10:00
parent 1a520b376f
commit 009a06a773
5 changed files with 21 additions and 17 deletions

View file

@ -343,6 +343,17 @@ copy_recurse(const std::string & from_path, const std::string & to_dir)
}
}
bool
touch_file (const std::string& path)
{
int fd = g_open (path.c_str(), O_RDWR|O_CREAT, 0660);
if (fd >= 0) {
close (fd);
return true;
}
return false;
}
std::string
get_absolute_path (const std::string & p)
{