mirror of https://github.com/axmolengine/axmol.git
use S_ISREG to check is a regular file?
This commit is contained in:
parent
4a040efbf6
commit
02c18d656a
|
@ -194,7 +194,7 @@ bool FileUtilsAndroid::isFileExistInternal(const std::string& strFilePath) const
|
||||||
{
|
{
|
||||||
struct stat64 st;
|
struct stat64 st;
|
||||||
if (0 == ::stat64(strFilePath.c_str(), &st))
|
if (0 == ::stat64(strFilePath.c_str(), &st))
|
||||||
bFound = st.st_mode & S_IFREG;
|
bFound = S_ISREG(st.st_mode);
|
||||||
}
|
}
|
||||||
return bFound;
|
return bFound;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue