Overwrite target file in PBD::copy_file
[ardour.git] / libs / pbd / file_utils.cc
index 956b7002cbd12bcdd2234ca7d42f421e96431080..f323ebcb69715d781f2b7a408f68c70a453d57d9 100644 (file)
@@ -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)
        {