Skip to content
Permalink
Browse files

COMMON: Add warnings on failed FSNode::createDirectory()

  • Loading branch information...
lolbot-iichan authored and bluegr committed Jun 30, 2019
1 parent f1250db commit 75539407921c660f06b80ed2e242372bee76c5dd
Showing with 5 additions and 0 deletions.
  1. +5 −0 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;
}

0 comments on commit 7553940

Please sign in to comment.
You can’t perform that action at this time.