summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/filesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd/pbd/filesystem.h')
-rw-r--r--libs/pbd/pbd/filesystem.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h
index 1fb6fbc155..c956c8beb1 100644
--- a/libs/pbd/pbd/filesystem.h
+++ b/libs/pbd/pbd/filesystem.h
@@ -173,16 +173,15 @@ void rename (const path& from_path, const path& to_path);
* Attempt to copy the contents of the file from_path to a new file
* at path to_path.
*
- * @throw filesystem_error if from_path.empty() || to_path.empty() ||
- * !exists(from_path) || !is_regular(from_path) || exists(to_path)
+ * @return true if file was successfully copied
*/
-void copy_file(const path & from_path, const path & to_path);
+bool copy_file(const std::string & from_path, const std::string & to_path);
/**
* Attempt to copy all regular files from from_path to a new directory.
* This method does not recurse.
*/
-void copy_files(const path & from_path, const path & to_dir);
+void copy_files(const std::string & from_path, const std::string & to_dir);
/**
* @return The substring of the filename component of the path, starting