From 7741de1dbf32136b6f15b914fd2f5a775e4b5d75 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 May 2013 16:59:36 +0000 Subject: File: Added file rename and deletion functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1436 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/OSSupport/File.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/OSSupport/File.h') diff --git a/source/OSSupport/File.h b/source/OSSupport/File.h index fe5d38bd0..8a057afa8 100644 --- a/source/OSSupport/File.h +++ b/source/OSSupport/File.h @@ -93,6 +93,12 @@ public: /// Returns true if the file specified exists static bool Exists(const AString & a_FileName); + /// Deletes a file, returns true if successful + static bool Delete(const AString & a_FileName); + + /// Renames a file, returns true if successful. May fail if dest already exists (libc-dependant)! + static bool Rename(const AString & a_OrigFileName, const AString & a_NewFileName); + int Printf(const char * a_Fmt, ...); private: -- cgit v1.2.3