summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:52 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:52 +0000
commite66e9854d7dac2e76753b74f3fe0eb323ac35f4f (patch)
tree7b9cf94639c87828861e1bf3c6a181645acbe5fe /libs
parenta22dd8c20a656a36d93e3e31ee3c04ca7e9b7278 (diff)
Overwrite target file in PBD::copy_file
git-svn-id: svn://localhost/ardour2/branches/3.0@12854 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/file_utils.cc2
-rw-r--r--libs/pbd/pbd/file_utils.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc
index 956b7002cb..f323ebcb69 100644
--- a/libs/pbd/file_utils.cc
+++ b/libs/pbd/file_utils.cc
@@ -139,7 +139,7 @@ copy_file(const std::string & from_path, const std::string & to_path)
try
{
- from_file->copy (to_file);
+ from_file->copy (to_file, Gio::FILE_COPY_OVERWRITE);
}
catch(const Glib::Exception& ex)
{
diff --git a/libs/pbd/pbd/file_utils.h b/libs/pbd/pbd/file_utils.h
index 8f5b6d1e25..475ddb9828 100644
--- a/libs/pbd/pbd/file_utils.h
+++ b/libs/pbd/pbd/file_utils.h
@@ -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
- * at path to_path.
+ * at path to_path. If to_path exists it is overwritten.
*
* @return true if file was successfully copied
*/