aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/System/Unix/Path.cpp4
-rw-r--r--lib/System/Unix/Path.inc4
-rw-r--r--lib/System/Win32/Path.cpp4
-rw-r--r--lib/System/Win32/Path.inc4
4 files changed, 8 insertions, 8 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");
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 4a18c6b3f0..a78b513c11 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -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");
diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp
index d76dcd0017..3e179eaf48 100644
--- a/lib/System/Win32/Path.cpp
+++ b/lib/System/Win32/Path.cpp
@@ -503,7 +503,7 @@ Path::createFile() {
}
bool
-Path::destroyDirectory(bool remove_contents) {
+Path::destroyDirectory(bool remove_contents) const {
// Make sure we're dealing with a directory
if (!isDirectory()) return false;
@@ -532,7 +532,7 @@ Path::destroyDirectory(bool remove_contents) {
}
bool
-Path::destroyFile() {
+Path::destroyFile() const {
if (!isFile()) return false;
DWORD attr = GetFileAttributes(path.c_str());
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index d76dcd0017..3e179eaf48 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -503,7 +503,7 @@ Path::createFile() {
}
bool
-Path::destroyDirectory(bool remove_contents) {
+Path::destroyDirectory(bool remove_contents) const {
// Make sure we're dealing with a directory
if (!isDirectory()) return false;
@@ -532,7 +532,7 @@ Path::destroyDirectory(bool remove_contents) {
}
bool
-Path::destroyFile() {
+Path::destroyFile() const {
if (!isFile()) return false;
DWORD attr = GetFileAttributes(path.c_str());