From 9b4198663463ce584fbd4f78adff29edc2bbc51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 17 Nov 2016 04:09:24 +0100 Subject: GH-347 update timestamps of added mods --- api/logic/FileSystem.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api/logic/FileSystem.h') diff --git a/api/logic/FileSystem.h b/api/logic/FileSystem.h index 564f94f9..a09ee557 100644 --- a/api/logic/FileSystem.h +++ b/api/logic/FileSystem.h @@ -28,6 +28,11 @@ MULTIMC_LOGIC_EXPORT void write(const QString &filename, const QByteArray &data) */ MULTIMC_LOGIC_EXPORT QByteArray read(const QString &filename); +/** + * Update the last changed timestamp of an existing file + */ +MULTIMC_LOGIC_EXPORT bool updateTimestamp(const QString & filename); + /** * Creates all the folders in a path for the specified path * last segment of the path is treated as a file name and is ignored! -- cgit v1.2.3