The ability to disable network folders is a longly waited function. The main reasons are: 1) overloaded network traffic and 2) infinitely deep recursion of directories caused by symbolic link on samba.
This patch provides a naive heuristic detection of looped link. The algorithm is: if the parent folder names duplicate for too many times, then it is likely a looped link. For example, if "doc/link1" points to "doc", then //hostname/doc/link1/link1/link1... could be a pattern for looped link. So it is excluded.
The second part is the support of regular expression exclusion list. Boost::RegEx is used, thus introduced a lib dependency. The setting file "C:/Program Files/FolderSize/exclusion.setting" is read when the service is launched. Each line in that file is an exclusion pattern. The example of setting file is provided in the attached file.
Combining these two functions, "Folder Size" will be more friendly to those who use network drives heavily and don't want to totally disable it on network folders by using version 2.1.
zipped patch files