Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 942 Bytes

File metadata and controls

26 lines (16 loc) · 942 Bytes

Get-ChildItem gets items converted to strings differently

Fixed in v6.1.0-preview.3

Get-ChildItem returns FileSystemInfo objects. Objects representing the same item may be converted to strings differently. In some cases they are converted as full paths, in other cases as just names.

For example, this command gets items that converted to strings as full paths:

Get-ChildItem . -Include *

This command gets the same items but they are converted to strings as names:

Get-ChildItem .

Scripts


  • Stack Overflow question
  • Microsoft Connect 556004
  • Microsoft Connect 1441999