Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.Is there a way to use the MBS plugin to get only the visible item and folder count on a volume?
Answer: You can use the DirectorySizeMBS class for this as in the example below:
Complete Question: Is there a way to use the MBS plugin to get only the visible item and folder count on a volume? The FileCount and FolderCount properties of
VolumeInformationMBS seem to provide the total # of items including
invisible items such as .DS_Store and more importantly .Trashes which
is causing me a great amount of difficulty during a recursive scan of a
volume. I've got a progress bar which uses the total of the filecount
and foldercount properties as the maximum value, but my routine needs
to filter out all invisible items, as it is creating a catalog of a
volume for archiving purposes. Any thoughts how I could get accurate
number.