Check fts_info against FTS_NSOK for files

This commit is contained in:
Kevin Sawicki 2012-10-09 08:50:28 -07:00
parent 6b6cf85ba0
commit 375d3551fa

View File

@ -157,7 +157,7 @@ bool Native::Execute(const CefString& name,
continue;
if (!recursive)
fts_set(tree, entry, FTS_SKIP);
if ((entry->fts_info & FTS_D) != 0 || (entry->fts_info & FTS_F) != 0)
if (entry->fts_info == FTS_D || entry->fts_info == FTS_NSOK)
retval->SetValue(index++, CefV8Value::CreateString(entry->fts_path));
}
}