Back to FabImage Studio website
You are here: Start » Filter Reference » File System » RemoveFiles
Removes files that match a pattern from a directory.
Name | Type | Description | |
---|---|---|---|
![]() |
inStartDirectory | Directory | |
![]() |
inMask | String | Wildcard pattern |
![]() |
outSuccess | Bool |
Remarks
inMask pattern string
Port inMask specifies wildcard pattern that selects files this filter will operate on. Supported wildcards:- * - any string of characters, including no characters
- ? - exactly one character
Examples:
- * - all files,
- *.jpg - files only with extension .jpg,
- Filename.* - files with name "Filename" and any extension, including no extension ie. "Filename."
- Filename.?? - files with name "Filename" and two letter extension,
Errors
This filter can throw an exception to report error. Read how to deal with errors here: Error Handling
Error type | Description |
---|---|
DomainError | inStartDirectory needs to be filled in |
DomainError | inMask needs to be filled in |
Complexity Level
This filter is available on Basic Complexity Level.
See Also
- FindFiles – Returns files of the input directory.