mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Move ARDOUR::touch_file to pbd/file_utils.h
This commit is contained in:
parent
1a520b376f
commit
009a06a773
5 changed files with 21 additions and 17 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue