Jump to: navigation, search

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


 
Line 1: Line 1:
 
The DeleteDirectoryContent deletes directory content based on criteria and optionally, removes the directory itself.
 
The DeleteDirectoryContent deletes directory content based on criteria and optionally, removes the directory itself.
  
 +
=Description=
 
{{ActivityInfoBox
 
{{ActivityInfoBox
 
| title = Delete Directory Content
 
| title = Delete Directory Content
Line 34: Line 35:
  
 
It returns the number of actual deleted files, including the directory.
 
It returns the number of actual deleted files, including the directory.
 +
 +
<!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS -->
  
 
==See also==
 
==See also==

Latest revision as of 09:50, 4 November 2015

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

[edit]

Description

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

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 is set to true the system tries to remove the directory as well.

It returns the number of actual deleted files, including the directory.


See also