Skip to content

Feature Request: Could you please add a option to exclude a folder and also exclude its subfolders? #15159

@NamelessUzer

Description

@NamelessUzer

Summary of the new feature/enhancement

As a user I want PowerShell can exclude a folder and also exclude its subfolders and subfiles.

Proposed technical implementation details (optional)

For instance:

Get-ChildItem -Recurse -ExcludeFolderAndItsSubFolders "ExcludeFolder"

Then, the folder "ExcludeFolder" and all its subfolders and all files in it and its subfolders will be excluded.
"ExcludeFolderAndItsSubFolders " is only an example, it's a little long. Of course, you can choose any other better option name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FileSystem-Providerspecific to the FileSystem providerIssue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management moduleWG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.WG-ReviewedA Working Group has reviewed this and made a recommendation

    Type

    No type

    Projects

    Status

    Reviewed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions