Steps to reproduce
PS C:\Users\powercode> ls -File | fl
Directory: C:\Users\powercode
Name : .cdpath
if ($_ -is [System.IO.DirectoryInfo]) { return '' }
if ($_.Attributes -band [System.IO.FileAttributes]::Offline)
{
return '({0})' -f $_.Length
}
return $_.Length : 101
CreationTime : 2016-12-19 19:42:20
LastWriteTime : 2017-07-10 17:20:09
LastAccessTime : 2017-07-10 17:20:09
Mode : -a----
LinkType :
Target : {}
VersionInfo : File: C:\Users\sgustafsson\.cdpath
InternalName:
OriginalFilename:
FileVersion:
FileDescription:
Product:
ProductVersion:
Debug: False
Patched: False
PreRelease: False
PrivateBuild: False
SpecialBuild: False
Language:
Expected behavior
Length property is not completely messed up
Actual behavior
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.4
OS Microsoft Windows 10.0.15063
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Expected behavior
Actual behavior
Environment data