-
-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
Description
Hello!
Firstly, Thank you for great function which calculate folder size using .NET.
It's work more than two times quickly on folders with millions of files.
I open issue, because function "Get-FolderSizeInfo" can throw exception at line 46 in code
if ($data.count -gt 1) {, when $data does not contains property "count".
This occurred in condition when folder is empty.
Exception: The property 'count' cannot be found on this object. Verify that the property exists.
I think, you can add this code before line 46 to solve issue
if (($data.psobject.members.name) -contains "count") {
Have a good day! :-)