mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Include FTS_PHYSICAL when calling fts_open
This commit is contained in:
@@ -104,7 +104,7 @@ bool Native::Execute(const CefString& name,
|
||||
strcpy(rootPath, argument.c_str());
|
||||
char * const paths[] = {rootPath, NULL};
|
||||
|
||||
FTS *tree = fts_open(paths, FTS_NOCHDIR | FTS_NOSTAT, NULL);
|
||||
FTS *tree = fts_open(paths, FTS_PHYSICAL| FTS_NOCHDIR | FTS_NOSTAT, NULL);
|
||||
if (tree == NULL)
|
||||
return true;
|
||||
|
||||
@@ -150,7 +150,7 @@ bool Native::Execute(const CefString& name,
|
||||
char rootPath[argument.size() + 1];
|
||||
strcpy(rootPath, argument.c_str());
|
||||
char * const paths[] = {rootPath, NULL};
|
||||
FTS *tree = fts_open(paths, FTS_NOCHDIR | FTS_NOSTAT, NULL);
|
||||
FTS *tree = fts_open(paths, FTS_PHYSICAL | FTS_NOCHDIR | FTS_NOSTAT, NULL);
|
||||
retval = CefV8Value::CreateArray(0);
|
||||
int index = 0;
|
||||
if (tree != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user