Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ bool Path::exists() const

if (access(nstr.c_str(), F_OK) == -1) {
int errsav = errno;
if (errsav == ENOENT) {
if (errsav == ENOENT || errsav == ENOTDIR) {
return false;
}
else {
Expand All @@ -1491,7 +1491,7 @@ bool Path::exists() const
std::wstring utf16 = utf8_to_utf16(m_path);
if (_waccess(utf16.c_str(), F_OK) == -1) {
int errsav = errno;
if (errsav == ENOENT) {
if (errsav == ENOENT || errsav == ENOTDIR) {
return false;
}
else {
Expand Down