diff options
Diffstat (limited to 'node_modules/cacache/lib/entry-index.js')
-rw-r--r-- | node_modules/cacache/lib/entry-index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/cacache/lib/entry-index.js b/node_modules/cacache/lib/entry-index.js index 1e3f9121a..face0fe79 100644 --- a/node_modules/cacache/lib/entry-index.js +++ b/node_modules/cacache/lib/entry-index.js @@ -215,7 +215,9 @@ function formatEntry (cache, entry) { } function readdirOrEmpty (dir) { - return readdirAsync(dir).catch({code: 'ENOENT'}, () => []) + return readdirAsync(dir) + .catch({code: 'ENOENT'}, () => []) + .catch({code: 'ENOTDIR'}, () => []) } function nop () { |