PowerShell: File Attributes Object Type

By Xah Lee. Date: .

Object type of file Attribute

File attribute is of the .net type System.IO.FileAttributes

[see Object Type, Properties, Methods]

# list properties of a file
Get-ItemProperty  .\Documents\ | Get-Member -MemberType Properties

# one of the property is
# Attributes          Property       System.IO.FileAttributes Attributes {get;set;}
 System.IO.DirectoryInfo properties 2022 Z8X2s
System.IO.DirectoryInfo properties

PowerShell: File Attributes