Skip to content

Commit

Permalink
Fixed path_exists(..) in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Mar 16, 2024
1 parent 1bde483 commit 390428a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/details/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ int rename(const filename_t &filename1, const filename_t &filename2) noexcept {

// Return true if path exists (file or directory)
bool path_exists(const filename_t &filename) noexcept {
struct _stat buffer;
#ifdef SPDLOG_WCHAR_FILENAMES
return (::_wstat(filename.c_str(), &buffer) == 0);
#else
Expand Down

0 comments on commit 390428a

Please sign in to comment.