GH-347 update timestamps of added mods

This commit is contained in:
Petr Mrázek
2016-11-17 04:09:24 +01:00
parent b09fad9cbf
commit 9b41986634
3 changed files with 25 additions and 1 deletions

View File

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