Skip to content

Latest commit

 

History

History

Different-FileInfo-ToString

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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