<< Click to Display Table of Contents >>

Navigation:  Using TreeSize > Options Dialog > Scan >


Define filtering options for TreeSize. If you need information about e.g. certain file types only, you can specify a filter using this options page. Please note that changes on this options page usually require a rescan of the currently scanned drives and folders to take effect.



How to define a filter (exclude or include)

To define a new filter, please follow these steps:

1.Click the "Add pattern" button. An entry will be created in the filters list for the new filter.

2.Decide whether this filter shall operate as an exclude or include filter using the "Action" selector of the newly created entry. An exclude filter for the pattern "*.exe" for example will make TreeSize to not show any files with the extension ".exe". This will also affect the calculated values such as the "Size" in the Directory Tree as well as any other view. An include filter, on the other hand, will make TreeSize show only items that match this pattern. To return to the previous example, an include filter of "*.exe" would result in a Directory Tree showing only data related to files that have the extension ".exe". If you have chosen to match against File Type, the edit field will show a dropdown button that allows to choose file type groups like "Office files" or "Video Files".

3.Define the actual pattern. You can either use simple Wildcard pattern such as "*.exe", Regular Expression patterns such as ".+\.exe$", or patterns that match full names like "notepad.exe". Please make sure that you select the matching pattern type on the "Type" selector on the right side of the window.

4.The "Match Against" selector is used to specify the element/attribute against which the pattern is compared. Patterns can either be matched against file names, (full) paths, owners, folder names, or object names. You can use the "owner" filter to, for example, include or exclude certain file owners from the TreeSize scan results. With the "full paths" or "folder name" filter you can include or exclude complete directory branches matching a certain pattern (e.g. "*\Program Files*"). The "file name" filter should be used when you intend to include or exclude certain file extensions (e.g. "*.tmp"), like described in step 2.


Preview the results

The "Preview" button enables you to view the results of a defined search pattern. The preview will use the currently selected pattern to show an Explorer-like view highlighting excluded and included items in appropriate colors (red and green). The following screenshot shows the results of an exclude filter for full paths that match the pattern "Program Files".



The following list describes additional filter settings that can be defined on this options page.

Additional Filter Settings

Include only files created in the past ... days

If this option is set, only files and folders which have been created within the specified amount of days will be scanned. This can be useful to calculate the size of backups or to identify "heavy growing" folders. A value of "0" means that all files will be included (default).

This is a volatile setting and won't be persisted. It applies to the running instance of TreeSize only.

Include only files with "archive" attribute

Check this option if you want to count only files for which the "archive" attribute has been set. This can be useful to determine the size of backups.

This is a volatile setting and won't be persisted. It applies to the running instance of TreeSize only.

Exclude offline files

This option enables you to exclude files that are marked as "offline". Offline files are often not physically present on the disk or are only cached temporarily on the local disk.

Hide empty folders

Check this option to hide empty folders from the view. A folder is considered empty if no file or folder has been found or if all contained files have been filtered.