Experimental Feature to add Temp: drive by SteveL-MSFT · Pull Request #8696 · PowerShell/PowerShell · GitHub
Skip to content

Experimental Feature to add Temp: drive#8696

Merged
daxian-dbw merged 1 commit intoPowerShell:masterfrom
SteveL-MSFT:temp-drive
Jan 23, 2019
Merged

Experimental Feature to add Temp: drive#8696
daxian-dbw merged 1 commit intoPowerShell:masterfrom
SteveL-MSFT:temp-drive

Conversation

@SteveL-MSFT
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

iSazonov commented Feb 1, 2019

@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
Copy Markdown
Member

adityapatwardhan commented Feb 4, 2019

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.

4 participants