Top
Top
LibraryEASYProcess Reference ManualProcessesServicesFileSystemWorkshopGetDirectories

GetDirectories Overview

The GetDirectories service finds subdirectories for the specified directory based on certain criteria.


GetDirectories Use Examples
Workshop:FileSystemWorkshop
Service:GetDirectories
Inputs
DirectoryName

SearchPattern

SearchOption

Outputs
DirectoryFullName
DirectoryName

GetDirectories Use Example

Basic GetDirectories Use

In this example, we have the directory setup like the following. TestDirectory has two subdirectories "File 111" and "File 222". File 222 has another subdirectory "Sub File1".

We first tried to search the exact match for "File" in all subdirectories by not using " * " symbol. The service returns nothing.

Then we add the " * " after keyword "File". It searches all directories that starts with "File". Hence it returns "File 111" and "File 222".

Now we add " * " before and after keyword "File". It searches all directories that contains keyword "File". Hence "Sub File1" returns as well.

If we set SearchOption to TopDirectoryOnly, it only returns directory under the one you searched for.


Powered by EASYProcess (© 2019 K-Rise Systems, Inc).