Please feel free to provide feedback or file bugs here.

Test-Path needs parameter for finding hidden files

Votes from Connect: 5

Original Date Submitted: 8/27/2015 8:45:51 PM

Description:

********Contact Information********
Handle: Eric Hodges
Site Name: PowerShell
Feedback ID: 1719027
***************************************

Problem Description:
Right now Test-Path has no way of checking for the existence of a hidden file. I would suggest -force to search all files (hidden or not), and/or -hidden to test only for hidden files.

Product Studio item created by Connect Synchronizer due to creation of feedback ID 1719027 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1719027).

Repro Steps:
Test-path hidden.txt
True

Test-Path h*.txt
False

Expected:
True

Internal BugId: 15763

36 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Joey Aiello [MSFT]AdminJoey Aiello [MSFT] (Program Manager, Windows Server) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base