Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit a34070f

Browse files
committed
Ensure log path exists
Nothing else creates the directory, and on mac the log is not in the default user cache path like on Windows, which means we can't rely on the settings class to create the log path
1 parent 779a336 commit a34070f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.Api/Platform/DefaultEnvironment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public DefaultEnvironment()
4646
{
4747
LogPath = UserCachePath.Combine(logFile);
4848
}
49+
LogPath.EnsureParentDirectoryExists();
4950
}
5051

5152
public DefaultEnvironment(ICacheContainer cacheContainer) : this()

0 commit comments

Comments
 (0)