mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Overwrite target file in PBD::copy_file
git-svn-id: svn://localhost/ardour2/branches/3.0@12854 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a22dd8c20a
commit
e66e9854d7
2 changed files with 2 additions and 2 deletions
|
|
@ -139,7 +139,7 @@ copy_file(const std::string & from_path, const std::string & to_path)
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
from_file->copy (to_file);
|
from_file->copy (to_file, Gio::FILE_COPY_OVERWRITE);
|
||||||
}
|
}
|
||||||
catch(const Glib::Exception& ex)
|
catch(const Glib::Exception& ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ find_file_in_search_path (const SearchPath& search_path,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempt to copy the contents of the file from_path to a new file
|
* Attempt to copy the contents of the file from_path to a new file
|
||||||
* at path to_path.
|
* at path to_path. If to_path exists it is overwritten.
|
||||||
*
|
*
|
||||||
* @return true if file was successfully copied
|
* @return true if file was successfully copied
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue