A few items I forgot in the last commit.

This commit is contained in:
Stephen Anthony 2023-01-26 17:04:05 -03:30
parent f72aff57a9
commit 07e0d35339
1 changed files with 3 additions and 4 deletions

View File

@ -56,12 +56,11 @@ bool FSNodeWINDOWS::setFlags()
} }
else else
{ {
_isDirectory = ((fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0); _isDirectory = static_cast<bool>(fileAttribs & FILE_ATTRIBUTE_DIRECTORY);
_isFile = !_isDirectory;//((fileAttribs & FILE_ATTRIBUTE_NORMAL) != 0); _isFile = !_isDirectory;
// Add a trailing backslash, if necessary // Add a trailing backslash, if necessary
if (_isDirectory && _path.length() > 0 && if (_isDirectory && _path.length() > 0 && _path.back() != FSNode::PATH_SEPARATOR)
_path[_path.length()-1] != FSNode::PATH_SEPARATOR)
_path += FSNode::PATH_SEPARATOR; _path += FSNode::PATH_SEPARATOR;
} }
_isPseudoRoot = false; _isPseudoRoot = false;