summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/File.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-01 18:59:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-01 18:59:36 +0200
commit7741de1dbf32136b6f15b914fd2f5a775e4b5d75 (patch)
tree595a61f85566e3465382633e24b51f0239670ff3 /source/OSSupport/File.h
parentTNT: Added physics to TNT entity (diff)
downloadcuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.tar
cuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.tar.gz
cuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.tar.bz2
cuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.tar.lz
cuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.tar.xz
cuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.tar.zst
cuberite-7741de1dbf32136b6f15b914fd2f5a775e4b5d75.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/File.h6
1 files changed, 6 insertions, 0 deletions
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: