diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/fs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/fs.cpp b/common/fs.cpp index 4b3ab21eb0..d27de48370 100644 --- a/common/fs.cpp +++ b/common/fs.cpp @@ -157,6 +157,11 @@ bool FSNode::createDirectory() const { return false; if (_realNode->exists()) { + if (_realNode->isDirectory()) { + warning("FSNode::createDirectory: '%s' already exists", getName().c_str()); + } else { + warning("FSNode::createDirectory: '%s' is a file", getName().c_str()); + } return false; } |