mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-30 04:23:51 +00:00
Fixed path_exists(..) in windows
This commit is contained in:
parent
1bde4831a0
commit
390428aae1
@ -104,6 +104,7 @@ int rename(const filename_t &filename1, const filename_t &filename2) noexcept {
|
|||||||
|
|
||||||
// Return true if path exists (file or directory)
|
// Return true if path exists (file or directory)
|
||||||
bool path_exists(const filename_t &filename) noexcept {
|
bool path_exists(const filename_t &filename) noexcept {
|
||||||
|
struct _stat buffer;
|
||||||
#ifdef SPDLOG_WCHAR_FILENAMES
|
#ifdef SPDLOG_WCHAR_FILENAMES
|
||||||
return (::_wstat(filename.c_str(), &buffer) == 0);
|
return (::_wstat(filename.c_str(), &buffer) == 0);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user