summaryrefslogtreecommitdiffstats
path: root/depends/util/include/pathutils.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-04-07 22:24:15 +0200
committerPetr Mrázek <peterix@gmail.com>2015-04-13 00:06:31 +0200
commitc7398dfdc581fbf36205fa826ad2aeadcd9b0122 (patch)
tree4aa331c389c2aa4c0148354d600b556b5073ffca /depends/util/include/pathutils.h
parent0220fe4f9d7f07fa137a11597b3465c76cfbcae3 (diff)
downloadMultiMC-c7398dfdc581fbf36205fa826ad2aeadcd9b0122.tar
MultiMC-c7398dfdc581fbf36205fa826ad2aeadcd9b0122.tar.gz
MultiMC-c7398dfdc581fbf36205fa826ad2aeadcd9b0122.tar.lz
MultiMC-c7398dfdc581fbf36205fa826ad2aeadcd9b0122.tar.xz
MultiMC-c7398dfdc581fbf36205fa826ad2aeadcd9b0122.zip
GH-228 do not recurse into reparse points when deleting instances
Diffstat (limited to 'depends/util/include/pathutils.h')
-rw-r--r--depends/util/include/pathutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/depends/util/include/pathutils.h b/depends/util/include/pathutils.h
index a506280e..f31b96d1 100644
--- a/depends/util/include/pathutils.h
+++ b/depends/util/include/pathutils.h
@@ -51,8 +51,16 @@ LIBUTIL_EXPORT bool ensureFilePathExists(QString filenamepath);
*/
LIBUTIL_EXPORT bool ensureFolderPathExists(QString filenamepath);
+/**
+ * Copy a folder recursively
+ */
LIBUTIL_EXPORT bool copyPath(QString src, QString dst, bool follow_symlinks = true);
+/**
+ * Delete a folder recursively
+ */
+LIBUTIL_EXPORT bool deletePath(QString path);
+
/// Opens the given file in the default application.
LIBUTIL_EXPORT void openFileInDefaultProgram(QString filename);