We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f7c87 commit d8ce204Copy full SHA for d8ce204
1 file changed
src/Format2.ps1
@@ -157,7 +157,10 @@ function Get-DisplayProperty2 ([Type]$Type) {
157
# and for types that do not exist
158
159
$propertyMap = @{
160
- 'System.Diagnostics.Process' = 'Id', 'Name'
+ 'System.Diagnostics.Process' = 'Id', 'Name'
161
+ # DirectoryInfo and FileInfo have circular references (Root, Directory) that cause infinite recursion
162
+ 'System.IO.DirectoryInfo' = 'Name', 'FullName'
163
+ 'System.IO.FileInfo' = 'Name', 'FullName', 'Length'
164
}
165
166
$propertyMap[$Type.FullName]
0 commit comments