Knowledge Base

Home > Features > Conditions

Created 14 Oct 2013
Modified 02 Jun 2014

Article 2678

Conditions

Introduction

Canonical Advanced Query Syntax (AQS) [1] can be used to build the conditions query. The same query syntax is used by Windows Search.
When a condition is evaluated the result will be either true or false. 

Properties

Name Description Data type
System.FileName File name String
System.ItemName Item name
For file items (includes file folders) the same as System.FileName 
String
System.ItemType For a file item the value is the same as System.FileExtension.
For a file folder the value is "Directory" 
String
System.Size Size
Empty for file folders
Integer
System.DateModified Last modified date DateTime
System.DateCreated Creation date
Not always available
DateTime
System.FileExtension File extension
Empty for file folders
String
System.ItemPathDisplay The display path to the item. String
System.ItemFolderPathDisplay The display path of an item's parent folder. String
SmartSoft.Unix.FileType Unix file type
Only available for FTP and SFTP remote items. Prefer System.ItemType instead.
Enum:
RegularFile
Directory
SymbolicLink
Special
Unknown
Socket
CharacterDevice
BlockDevice
FIFO  

Extensions

Regular Expression

To use regular expression for comparison, prefix any string literal with <RegEx>. Regular expressions are supported for equal and not equal operations.
Syntax:
 
Equals:
Property:="<RegEx>pattern" 
e.g. System.FileName:="<RegEx>rdb[0-9][0-9]\.dat"

Not equal:
Property:<>"<RegEx>pattern" 
e.g. System.FileName:<>"<RegEx>rdb[0-9][0-9]\.dat"

Examples

Inclusion

Exclusion

Mixed

 

References

  1. AQS Syntax

Keywords
aqs