GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Experimental Feature to add Temp: drive by SteveL-MSFT · Pull Request #8696 · PowerShell/PowerShell

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Jan 19, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • Change is not breaking
  • Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
  • This PR is ready to merge and is not Work in Progress.
    • If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.
  • User-facing changes
    • Not Applicable
    • OR
    • Documentation needed
      • Issue filed:
  • Testing - New and feature
    • N/A or can only be tested interactively
    • OR
    • Make sure you've added a new test if existing tests do not effectively test the code changed
      • Add [feature] to your commit messages if the change is significant or affects feature tests

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vexx32, stknohg, SeeminglyScience, zigford, and chuanjiao10 reacted with thumbs up emoji felixfbecker reacted with heart emoji vexx32 reacted with rocket emoji
All reactions
  • 👍 5 reactions
  • ❤️ 1 reaction
  • 🚀 1 reaction
@SteveL-MSFT Steve Lee (SteveL-MSFT) added the Experimental Experimental Feature label Jan 19, 2019
@SteveL-MSFT Steve Lee (SteveL-MSFT) assigned Dongbo Wang (daxian-dbw) Jan 19, 2019
@SteveL-MSFT
Steve Lee (SteveL-MSFT) requested review from Aditya Patwardhan (adityapatwardhan) and Andrew (anmenaga) January 19, 2019 03:03
@SteveL-MSFT
Steve Lee (SteveL-MSFT) requested review from Bruce Payette (BrucePay) and Dongbo Wang (daxian-dbw) as code owners January 19, 2019 03:03
@SteveL-MSFT
Steve Lee (SteveL-MSFT) force-pushed the temp-drive branch from aa9944e to 9af3d10 Compare January 19, 2019 03:05
@SteveL-MSFT Steve Lee (SteveL-MSFT) mentioned this pull request Jan 19, 2019
Provide a platform-agnostic way to determine the temp. directory, e.g., via an automatic variable. #4216
Closed
@SteveL-MSFT
[feature] experimental feature for temp drive
ec3a4fc
@SteveL-MSFT
Steve Lee (SteveL-MSFT) force-pushed the temp-drive branch from 9af3d10 to ec3a4fc Compare January 19, 2019 04:00
daxian-dbw
Dongbo Wang (daxian-dbw) approved these changes Jan 21, 2019
View reviewed changes

@daxian-dbw Dongbo Wang (daxian-dbw) left a comment

Copy link
Copy Markdown
Member

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.

LGTM.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 7e2cd79 into PowerShell:master Jan 23, 2019
@iSazonov

Ilya (iSazonov) commented Feb 1, 2019

Copy link
Copy Markdown
Collaborator

What CL- label we need to assign?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the temp-drive branch February 1, 2019 03:42
@adityapatwardhan Aditya Patwardhan (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

Aditya Patwardhan (adityapatwardhan) commented Feb 4, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

iSazonov reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@iSazonov Ilya (iSazonov) mentioned this pull request Mar 4, 2019
Fix tab completion for filename contains literal wildcard character #7407
Closed
6 of 11 tasks
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
@SteveL-MSFT @daxian-dbw
Add the experimental feature for creating 'Temp:\' drive when FileSys…
f590e40
…temProvider initializes (PowerShell#8696)

Adds Experimental Feature called `PSTempDrive` that, if enabled, creates a PSDrive called `Temp:` that maps to `[System.IO.Path]::GetTempPath()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@daxian-dbw Dongbo Wang (daxian-dbw) daxian-dbw approved these changes
@anmenaga Andrew (anmenaga) Awaiting requested review from anmenaga
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) Awaiting requested review from adityapatwardhan
@BrucePay Bruce Payette (BrucePay) Awaiting requested review from BrucePay

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@daxian-dbw Dongbo Wang (daxian-dbw)

Labels

CL-Experimental Indicates that a PR should be marked as an Experimental Feature in the Change Log Experimental Experimental Feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@SteveL-MSFT @iSazonov @adityapatwardhan @daxian-dbw
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.