aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.h
diff options
context:
space:
mode:
authorRyan Cao <70191398+ryanccn@users.noreply.github.com>2022-10-19 21:53:57 +0800
committerRyan Cao <70191398+ryanccn@users.noreply.github.com>2022-11-05 22:17:59 +0800
commit7b1e68bfa8cf9d46e0c810cfa0f077427cfc707a (patch)
tree87782c5e9f960f67dcc9dfbe499b5f1fad53a499 /launcher/FileSystem.h
parent2999afe7815d0c2a557e95c7518e192650fdc652 (diff)
downloadPrismLauncher-7b1e68bfa8cf9d46e0c810cfa0f077427cfc707a.tar.gz
PrismLauncher-7b1e68bfa8cf9d46e0c810cfa0f077427cfc707a.tar.bz2
PrismLauncher-7b1e68bfa8cf9d46e0c810cfa0f077427cfc707a.zip
initial support for add to PATH action
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Diffstat (limited to 'launcher/FileSystem.h')
-rw-r--r--launcher/FileSystem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/FileSystem.h b/launcher/FileSystem.h
index b46f3281..2d4dfb56 100644
--- a/launcher/FileSystem.h
+++ b/launcher/FileSystem.h
@@ -54,6 +54,11 @@ class FileSystemException : public ::Exception {
void write(const QString& filename, const QByteArray& data);
/**
+ * create a symlink
+ */
+bool symlink(const QString& target, const QString& link);
+
+/**
* read data from a file safely\
*/
QByteArray read(const QString& filename);