-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Get-ChildItem (-Recurse) and (-Recurse -Name) return inconsistent #20129
Copy link
Copy link
Closed
Description
Get-ChildItem ../.. -Recurse -Depth 1 -Name | gm -View Extended
Get-ChildItem ../.. -Name | gm -View Extended
TypeName: System.String
Name MemberType Definition
---- ---------- ----------
PSChildName NoteProperty string PSChildName=.clang-format
PSDrive NoteProperty PSDriveInfo PSDrive=C
PSIsContainer NoteProperty bool PSIsContainer=False
PSParentPath NoteProperty string PSParentPath=Microsoft.PowerShell.Core\FileSystem::C:\source\runtime2
PSPath NoteProperty string PSPath=Microsoft.PowerShell.Core\FileSystem::C:\source\runtime2\.clang-format
PSProvider NoteProperty ProviderInfo PSProvider=Microsoft.PowerShell.Core\FileSystemreturned strings missing extended properties.
Was also mentioned here #9119 (comment)
UPD:
#8995 suggests that maybe it should not be fixed as it would negatively affect perf.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels