Skip to content

Commit

Permalink
Use HomeDirectoryProvider to retrieve the default location
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Jun 5, 2024
1 parent 6f31fe6 commit cdc9f80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal SnowflakeCredentialManagerFileImpl(FileOperations fileOperations, Direc
private void SetCredentialCachePath(ref string _jsonCacheDirectory, ref string _jsonCacheFilePath)
{
var customDirectory = _environmentOperations.GetEnvironmentVariable(CredentialCacheDirectoryEnvironmentName);
_jsonCacheDirectory = string.IsNullOrEmpty(customDirectory) ? _environmentOperations.GetFolderPath(Environment.SpecialFolder.UserProfile) : customDirectory;
_jsonCacheDirectory = string.IsNullOrEmpty(customDirectory) ? HomeDirectoryProvider.HomeDirectory(_environmentOperations) : customDirectory;
_jsonCacheFilePath = Path.Combine(_jsonCacheDirectory, CredentialCacheFileName);
s_logger.Info($"Setting the json credential cache path to {_jsonCacheFilePath}");
}
Expand Down

0 comments on commit cdc9f80

Please sign in to comment.