System Tools and Scripting Plugins → FileUtils Plugin → Delete Files and Directories Step
This step deletes a specified set of files and directories.
Required properties:
Property Name | Description |
---|---|
Base Directory | The starting directory from under which deletions are to be done. |
Include Files |
Specify a new-line-separated list of file/directory patterns to include. Pattern Matching Rules: * matches zero or more characters ? matches one character ** matches zero or more directories Examples: *.java - matches .java, x.java, and FooBar.java ?.java - matches x.java, A.java **/*.txt - matches all txt files recursively **/CVS/* - matches all files in CVS directories anywhere in the directory tree org/apache/jakarta/** - matches all files in the org/apache/jakarta directory tree org/apache/**/CVS/* - matches all files in CVS directories anywhere in the in the directory tree under org/apache/ **/test/** - matches all files that have a test element in their path, including test as a filename |
Optional properties:
Property Name | Description |
---|---|
Exclude Files | Specify a new-line-separated list of file/directory patterns to exclude. Pattern matching rules are the same as those listed in Include Files. |
Follow Symlinks |
Select this to follow symbolic links when deleting. This deletes any files and directories linked to the files and directories in the deletion list. |
Case Sensitive | Select this for case sensitive name matching. |
Copyright © 2013–2017 Serena Software, Inc., a Micro Focus company. All rights reserved.