Description: Explains how to edit filter tests.
Keywords: edit filter test, modify filter test, filter test

# Editing filter tests

When you edit a filter, you can create new tests and modify existing ones. You can do so from a "Filter test" window. For a test that you create from scratch you must specify a name, which is used to identify it.

You can choose if the test should apply to files, to folders, or both. When a test is applied to folders, you will not be able to add sub-tests that can only be applied to files.

A test should consist of one or more sub-tests, which you enable by the checkboxes at the left and can then subsequently configure. When a test consists of multiple sub-tests, all should hold for a file or folder to pass the test. You can choose from the following sub-tests:

- Name: Tests if the name of a file or folder matches any of the targets. I.e. the name only needs to match one target for the sub-test to succeed.
- Path: Tests if the path of a file or folder matches any of the targets. The paths are absolute. It starts at the root of the file system and includes the item's name. For folders, the path always ends with a path separator, i.e. a slash ("/").
- Type: Tests if the type of a file equals or conforms to any of the targets.
- Hard-linked: Tests if the file or folder is stored as a hard link on the file system.
- Package: Tests if the file or folder is a package. (Depending on whether or not package contents are shown, a package is treated as a file or a folder.)
- Size: Tests if the size of a file is above or below a given limit.