Skip to content

Add provider for Test-Path -Filter #13764

@nikita-sakharin

Description

@nikita-sakharin

Summary of the new feature/enhancement

Add FileSystem provider to list of supported filters for Test-Path. It must behave like Get-ChildItem -Filter

Set-Content -Path 'C:\Users\username\Documents\test.txt' -Value 'Hello, World!'
Test-Path -Path 'C:\Users\username\Documents\test.txt' -Filter '*.json'

Expected behavior

False

Actual behavior

True

Proposed technical implementation details (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.WG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions