-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release/8.0-preview1] Remove unnecessary subfolders from the session temp folder #621
Conversation
* Remove extra subfolders from session temp folder path * Ensure the session folder is created with appropriate Unix permissions if it doesn't already exist * Check for Windows for proper CreateDirectory method * Remove extra using
@@ -263,7 +264,14 @@ private static Socket CreateLoggingSocket(string socketPath) | |||
string? directoryName = Path.GetDirectoryName(socketPath); | |||
if (!string.IsNullOrEmpty(directoryName)) | |||
{ | |||
Directory.CreateDirectory(directoryName); | |||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a future PR, we can use OperatingSystem.IsWindows()
here, which is the preferred way of doing this check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danmoseley or @davidfowl can I get an approval from either of you so this can be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't a must have for preview is it? after the last change which unblocked mac.
but I'm fine taking it if you believe it's needed.
This isn't as critical as the other PR, but it does reduce the chance of hitting path limits on Mac, which was previously an issue. |
Cherry-Pick #615
Remove extra subfolders from session temp folder path
Ensure the session folder is created with appropriate Unix permissions if it doesn't already exist
Check for Windows for proper CreateDirectory method
Remove extra using