Skip to content
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

Experimental Feature to add Temp: drive #8696

Merged
merged 1 commit into from
Jan 23, 2019

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Jan 19, 2019

PR Summary

Adds Experimental Feature called PSTempDrive that, if enabled, creates a PSDrive called Temp: that maps to [System.IO.Path]::GetTempPath().

PR Context

This enables cross platform way to easily access your temp folder since the env var is different across Windows, Linux, and macOS. Also makes it easier to write temp files in cases like Azure Functions where you can't write to the current working directory. Since this is a direct mapping to the user's temp path, there is no auto cleanup by PowerShell.

PR Checklist

Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@daxian-dbw daxian-dbw merged commit 7e2cd79 into PowerShell:master Jan 23, 2019
@iSazonov
Copy link
Collaborator

iSazonov commented Feb 1, 2019

What CL- label we need to assign?

@SteveL-MSFT SteveL-MSFT deleted the temp-drive branch February 1, 2019 03:42
@adityapatwardhan adityapatwardhan added the CL-Experimental Indicates that a PR should be marked as an Experimental Feature in the Change Log label Feb 4, 2019
@adityapatwardhan
Copy link
Member

adityapatwardhan commented Feb 4, 2019

Just created a label CL-Experimental and attached to the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CL-Experimental Indicates that a PR should be marked as an Experimental Feature in the Change Log Experimental Experimental Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants