Kaspersky Endpoint Security 11 for Mac

Masks in paths to files and folders

September 12, 2023

ID 24412

A file name mask or a folder name mask represents the name and extension of a file or the name of a folder using common symbols.

You can use these symbols when you specify the protection scope, scan scope, and Trusted Zone:

  • The tilde symbol (~) replaces /Users/<user name> in the path to a file or folder. For example, the path ~/Desktop means that the protection scope includes Desktop folders of all users on computers that you want to protect.
  • The asterisk symbol (*) takes the place of any set of characters in the file or folder name, except the \ and / characters (which delimit the names of files and folders in paths to files and folders). For example, the mask /*/*.txt will include all paths to files with the TXT extension located in folders on the internal disk, but not in subfolders.
  • Two consecutive asterisk symbols (**) take the place of any set of characters (including an empty set) in the file or folder name, including the \ and / characters (which delimit the names of files and folders in paths to files and folders). For example, the mask /Folder/**/*.txt will include all paths to files with the TXT extension located in the folder named Folder and its subfolders. The mask must include at least one nesting level. The mask /**/*.txt is not a valid mask.
  • The question mark (?) takes the place of any single character in the file or folder name, except the \ and / characters (which delimit the names of files and folders in paths to files and folders). For example, the mask /Folder/???.txt will include paths to all files located in the folder named Folder that have the TXT extension and a name consisting of three characters.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.