System.IO.DirectoryInfo
represents a file system directory. System.IO.DirectoryInfo
derives from System.IO.FileSystemInfo
. get-item
if the item is a directory: PS C:\> (get-item . ).GetType().FullName System.IO.DirectoryInfo
System.Management.Automation.PathInfo
Directory
property of the System.IO.FileInfo
object.