diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 6 | ||||
-rw-r--r-- | common/file.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/common/file.cpp b/common/file.cpp index cdf8d5e13e..f7e4177e56 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -409,7 +409,7 @@ bool File::open(const FilesystemNode &node, AccessMode mode) { return true; } -bool File::remove(const String &filename){ +bool File::removeFile(const String &filename){ if (remove(filename.c_str()) != 0) { if (errno == EACCES) { //TODO: read-only file @@ -424,8 +424,8 @@ bool File::remove(const String &filename){ } } -bool File::remove(const FilesystemNode &node){ - if (remove(node.getPath()) != 0) { +bool File::removeFile(const FilesystemNode &node){ + if (remove(node.getPath().c_str()) != 0) { if (errno == EACCES) { //TODO: read-only file } diff --git a/common/file.h b/common/file.h index 4bec6605e7..d966d95f2d 100644 --- a/common/file.h +++ b/common/file.h @@ -85,8 +85,8 @@ public: virtual void close(); - virtual bool remove(const String &filename); - virtual bool remove(const FilesystemNode &node); + virtual bool removeFile(const String &filename); + virtual bool removeFile(const FilesystemNode &node); /** * Checks if the object opened a file successfully. |