minor clean up and add some docs

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2022-10-25 20:18:14 -07:00
parent 13c7efa058
commit e9d4793b1e
6 changed files with 38 additions and 23 deletions

View File

@ -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;