diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2022-10-25 20:18:14 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2022-11-01 04:24:11 -0700 |
commit | e9d4793b1e98944dad910b3952c117bb2d3369de (patch) | |
tree | 220af12faafe97d903d5c2298befee2aee91f050 /launcher/FileSystem.cpp | |
parent | 13c7efa0584caf34950a6e6efa4b8e3bee16d764 (diff) | |
download | PrismLauncher-e9d4793b1e98944dad910b3952c117bb2d3369de.tar.gz PrismLauncher-e9d4793b1e98944dad910b3952c117bb2d3369de.tar.bz2 PrismLauncher-e9d4793b1e98944dad910b3952c117bb2d3369de.zip |
minor clean up and add some docs
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r-- | launcher/FileSystem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp index 4285fa87..8fe441b3 100644 --- a/launcher/FileSystem.cpp +++ b/launcher/FileSystem.cpp @@ -163,6 +163,10 @@ 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 &src, QString &dst) { using copy_opts = fs::copy_options; @@ -185,6 +189,9 @@ bool copyFile(QString &src, QString &dst) { } +/// @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 bool copy::operator()(const QString& offset) { using copy_opts = fs::copy_options; |