aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-11-01 04:28:57 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2022-11-01 04:28:57 -0700
commit6010ce0dc587527caa05bdc9b4cecdb9bd811375 (patch)
tree8d3fdc4db281f5d7f5b68e86b19300722b2e7b46 /launcher/FileSystem.cpp
parenta7a331a26e43df3dbafdbb29a59d38ba807ffa7d (diff)
downloadPrismLauncher-6010ce0dc587527caa05bdc9b4cecdb9bd811375.tar.gz
PrismLauncher-6010ce0dc587527caa05bdc9b4cecdb9bd811375.tar.bz2
PrismLauncher-6010ce0dc587527caa05bdc9b4cecdb9bd811375.zip
chore(remove FS::copyFile):
Now that #333 is merged and FS::copy works on non directory copyFile can be removed. Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r--launcher/FileSystem.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 508da08d..bf0849ec 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -163,32 +163,6 @@ bool ensureFolderPathExists(QString foldernamepath)
return success;
}
-/// @brief Copy file at src to dest, ensures the full filepath exsists
-/// @param src srouce file path
-/// @param dst destination file path
-/// @return boolean: was there an error during the filecopy?
-bool copyFile(QString const& src, QString const& dst) {
- using copy_opts = fs::copy_options;
-
- std::error_code err;
-
- fs::copy_options opt = copy_opts::none;
- // The default behavior is to follow symlinks
- opt |= copy_opts::copy_symlinks;
-
- ensureFilePathExists(dst);
-
- fs::copy(toStdString(src), toStdString(dst), opt, err);
- if (err) {
- qWarning() << "Failed to copy files:" << QString::fromStdString(err.message());
- qDebug() << "Source file:" << src;
- qDebug() << "Destination file:" << dst;
- }
-
- return err.value() == 0;
-
-}
-
/// @brief Copies a directory and it's contents from src to dest
/// @param offset subdirectory form src to copy to dest
/// @return if there was an error during the filecopy