mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Exist folder check: Add white list for some folders
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user