diff options
Diffstat (limited to 'lib/System/Unix/Path.cpp')
-rw-r--r-- | lib/System/Unix/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Path.cpp b/lib/System/Unix/Path.cpp index 4a18c6b3f0..a78b513c11 100644 --- a/lib/System/Unix/Path.cpp +++ b/lib/System/Unix/Path.cpp @@ -492,7 +492,7 @@ Path::createTemporaryFile(bool reuse_current) { } bool -Path::destroyDirectory(bool remove_contents) { +Path::destroyDirectory(bool remove_contents) const { // Make sure we're dealing with a directory if (!isDirectory()) return false; @@ -520,7 +520,7 @@ Path::destroyDirectory(bool remove_contents) { } bool -Path::destroyFile() { +Path::destroyFile() const { if (!isFile()) return false; if (0 != unlink(path.c_str())) ThrowErrno(path + ": Can't destroy file"); |