Your question is not clear. Get-childitem cmdlet returns both FileInfo and DirectoryInfo objects when used with the file system provider.
You can see this for yourself:
PS C:\> get-childitem | where-object { $_ -is [System.IO.DirectoryInfo] }
-- Bill Stewart [Bill_Stewart]