3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-29 06:35:53 +00:00

Fix EISDIR error due to globbed directories (#1) (#132)

This commit is contained in:
Felix Riegger 2023-05-02 21:49:27 +02:00 committed by GitHub
parent 6fd3edff69
commit 99229f978c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -141,6 +141,7 @@ export class CacheConfig {
)),
);
}
keyFiles = keyFiles.filter(file => !fs.statSync(file).isDirectory());
keyFiles.sort((a, b) => a.localeCompare(b));
hasher = crypto.createHash("sha1");