Jump to: navigation, search

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


 
Line 35: Line 35:
  
 
In '''Result''' the number of actual found files is returned.
 
In '''Result''' the number of actual found files is returned.
 +
 +
=Example=
 +
Load the MetaClass named ''PUMP'', also load the MetaProperty ''NOMINALPOWER'' from the property pool and then add it to the MetaClasses' properties:
 +
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! Argument!! Value
 +
|- align="left"
 +
| Filter || <source lang = "vbnet">c*</source>
 +
|}
  
 
<!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS -->
 
<!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS -->

Latest revision as of 09:42, 9 November 2015

The ReadDirectoryContent returns a file list from a directory matching a search pattern.

[edit]

Description

Read Directory Content
Name ReadDirectoryContent
Purpose Read directory content
Category File Primitives
Returns Number of files found
Version 2.3+

Arguments

Argument Type Direction Purpose
CreationTime DateTime In Minimum creation time
Directory String In Directory full path
FileNames List<String> Out List of file full paths
Filter String In Search pattern for files (extension)
LastWriteTime DateTime In Minimum last write time
Result Integer Out Number of found files

Usage

This activity returns a list of file full paths matching the search pattern Filter and timestamp criteria CreationTime and LastWriteTime in the given directory.

In Result the number of actual found files is returned.

Example

Load the MetaClass named PUMP, also load the MetaProperty NOMINALPOWER from the property pool and then add it to the MetaClasses' properties:

Argument Value
Filter
c*


See also