Skip to content

Commit 24995a4

Browse files
Add directory check
1 parent 81a56df commit 24995a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/authentication/secure_storage/json_credential_manager.js

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ function JsonCredentialManager(credentialCacheDir, timeoutMs = 60000) {
7171
await fs.mkdir(cacheDir, options);
7272
return true;
7373
} else {
74+
if (!stat.isDirectory()) {
75+
return false;
76+
}
7477
if (process.platform === 'win32') {
7578
return true;
7679
}

0 commit comments

Comments
 (0)