Exist folder check: Add white list for some folders

This commit is contained in:
Oleg.Korshul
2024-02-29 16:02:38 +03:00
parent cf90cd9e12
commit 0dd978c000

View File

@ -60,6 +60,10 @@ namespace NSDirectory
#if !defined(_WIN32) && !defined (_WIN64)
static bool is_directory_exist(char* dir)
{
#ifdef __ANDROID__
if (0 == strcmp("/storage/emulated", dir))
return true;
#endif
struct stat st;
bool bRes = (0 == stat(dir, &st)) && S_ISDIR(st.st_mode);
return bRes;