Skip to content

Commit 263ca63

Browse files
authored
Merge pull request #9256 from jackyalbo/jacky-nc-fixes
NC | list_objects skip another case of stat failure on EINVAL
2 parents 271b53d + 54eb627 commit 263ca63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sdk/namespace_fs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,10 @@ class NamespaceFS {
808808
dbg.log0('NamespaceFS: no keys for non existing dir', dir_path);
809809
return;
810810
}
811+
if (err.code === 'EINVAL' && config.NSFS_LIST_IGNORE_ENTRY_ON_EINVAL) {
812+
dbg.log0('NamespaceFS: can\'t stat directory (probably internal gpfs directory)', dir_path);
813+
return;
814+
}
811815
throw err;
812816
}
813817

0 commit comments

Comments
 (0)