diff options
author | Mattes D <github@xoft.cz> | 2015-04-12 10:54:05 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-12 10:54:05 +0200 |
commit | 9367d44cb484436cd8b6a77619db0c86582a71d6 (patch) | |
tree | cc81ba80cd6355582a505de3b4a019800742e055 /src/OSSupport/File.h | |
parent | Added extra divide operator to Vector3. (diff) | |
parent | cFile:ChangeFileExt now accepts extensions with leading dot, too. (diff) | |
download | cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.tar cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.tar.gz cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.tar.bz2 cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.tar.lz cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.tar.xz cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.tar.zst cuberite-9367d44cb484436cd8b6a77619db0c86582a71d6.zip |
Diffstat (limited to 'src/OSSupport/File.h')
-rw-r--r-- | src/OSSupport/File.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h index 1cf5c71d7..6ee080480 100644 --- a/src/OSSupport/File.h +++ b/src/OSSupport/File.h @@ -131,6 +131,18 @@ public: a_FileName may contain path specification. */ static AString ChangeFileExt(const AString & a_FileName, const AString & a_NewExt); + /** Returns the last modification time (in current timezone) of the specified file. + The value returned is in the same units as the value returned by time() function. + If the file is not found / accessible, zero is returned. */ + static unsigned GetLastModificationTime(const AString & a_FileName); + + /** Returns the path separator used by the current platform. + Note that the platform / CRT may support additional path separators (such as slashes on Windows), these don't get reported. */ + static AString GetPathSeparator(void); + + /** Returns the customary executable extension used by the current platform. */ + static AString GetExecutableExt(void); + // tolua_end /** Returns the list of all items in the specified folder (files, folders, nix pipes, whatever's there). */ |