mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-15 22:05:57 +08:00
Don't add extra slash to folders in Mingw
This commit is contained in:
parent
2b047e1ac3
commit
8089ba6643
@ -38,7 +38,7 @@ bool DirectoryExists(const std::string &path_arg) {
|
|||||||
struct stat path_stat;
|
struct stat path_stat;
|
||||||
std::string path = path_arg;
|
std::string path = path_arg;
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && not defined(__MINGW32__)
|
||||||
// Avoid a silly windows issue: stat() will fail on a drive letter missing the
|
// Avoid a silly windows issue: stat() will fail on a drive letter missing the
|
||||||
// trailing slash.
|
// trailing slash.
|
||||||
if (path.size() > 0 && path[path.size()] != '\\' &&
|
if (path.size() > 0 && path[path.size()] != '\\' &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user