Jump to: navigation, search

Difference between revisions of "Activity:DeleteDirectoryContent (Activity)"


(Created page with "{{ActivityInfoBox | title = Delete Directory Content | name = DeleteDirectoryContent | image = | imagecaption = Activity DeleteDirectoryContent | purpose = Delete directory...")
 
Line 35: Line 35:
 
* [[Workflow Designer]]
 
* [[Workflow Designer]]
 
* [[DeleteFile_(Activity)]]
 
* [[DeleteFile_(Activity)]]
 +
* [[ReadDirectoryContent_(Activity)]]
  
 
[[Category:Workflows]]
 
[[Category:Workflows]]
 
[[Category:Activities]]
 
[[Category:Activities]]

Revision as of 16:02, 7 January 2015

Delete Directory Content
Name DeleteDirectoryContent
Purpose Delete directory and its content
Category File Primitives
Returns Number of deleted files
Version 2.3+

The DeleteDirectoryContent deletes directory content based on criteria and optionally, removes the directory itself.

Arguments

Argument Type Direction Purpose
CreationTime DateTime In Minimum creation time
DeleteEmptyDirectory Boolean In If true, an empty directory is deleted
Directory String In Directory full path
Filter String In Search pattern for files (extension)
LastWriteTime DateTime In Minimum last write time
Result Integer Out Number of deleted files including the directory

Usage

This activity deletes all files matching the search pattern Filter and timestamp criteria CreationTime and LastWriteTime in the given directory. If DeleteEmptyDirectory = true the system tries to remove the directory as well. It returns the number of actual deleted files, including the directory.

See also