Skip to content

feat: wildcard pattern matching #589

@eamonburns

Description

@eamonburns

It would be very nice to be able to supply a wildcard pattern to Get-SFTPChildItem. Currently, if you were to run

Get-SFTPChildItem -SessionId 0 -Path /pattern*

You would get the error:

Path /pattern* doesn't exist on the target host.

This wildcard matching is possible in the default sftp program that comes with Redhat:

sftp user@host:/pattern*

and in the PowerShell cmdlet Get-ChildItem:

Get-ChildItem -Path C:\pattern*

Based on the discrepancy between the functionality of Get-ChildItem and Get-SFTPChildItem, this may be considered a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions