aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-29 17:21:54 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-29 17:21:54 -0700
commitc470f05abf090232b27faac6014f9e1cbe9dab9b (patch)
tree6dcca30406fb8bf97a4ee4f3a09c9143230a40d1 /launcher/FileSystem.h
parent3691f3a2963c77dbd7b469b4b90ca79b61014d43 (diff)
downloadPrismLauncher-c470f05abf090232b27faac6014f9e1cbe9dab9b.tar.gz
PrismLauncher-c470f05abf090232b27faac6014f9e1cbe9dab9b.tar.bz2
PrismLauncher-c470f05abf090232b27faac6014f9e1cbe9dab9b.zip
refactor: use std::filesystem::rename insted of copy and then moving.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/FileSystem.h')
-rw-r--r--launcher/FileSystem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/launcher/FileSystem.h b/launcher/FileSystem.h
index ac893725..1e3a60d9 100644
--- a/launcher/FileSystem.h
+++ b/launcher/FileSystem.h
@@ -122,6 +122,14 @@ class copy : public QObject {
};
/**
+ * @brief moves a file by renaming it
+ * @param source source file path
+ * @param dest destination filepath
+ *
+ */
+bool move(const QString& source, const QString& dest);
+
+/**
* Delete a folder recursively
*/
bool deletePath(QString path);