This section includes a set of activities designed to work with files and folders on the local system and allows users to create, move, copy, delete, and manipulate files and directories.
The File activity has the following sub activities:
Append Line: This activity helps to append a string value to the end of a text file.
InputProperties:
File Path: The full path to the file.
String: Text to be attached to the file.
Copy Files: This activity can be used to copy one or more files to a specified folder.
InputProperties:
Source Folder: The relative or absolute path of the directory to search.
Contents: The search string to match against the names of files in path. This parameter can contain a combination of valid literal path and wildcard ( * and ?) characters, but it doesn”t support regular expressions.
Target Folder: The relative or absolute path of the destination folder.
Recursive: If selected, it will include the current directory and all of its sub-directories.
Advanced Option Properties:
Overwrite: If selected, replace the existing file in the target folder.
CleanTargetFolder: Select to clear the target folder before starting the copy action.
FlattenFolder: If selected, copie all files from subdirectories to the root folder.
DeleteFileAfterCopy: If selected, delete all files in the source location after the copy is complete.
Create Directory: This activity is used to create a new directory in the specified location.
InputProperties:
Path: Path of the directory to be created.
Delete Files: This activity is used to delete file(s) from the specified location.
InputProperties:
Source Folder: The relative or absolute path of the directory to search.
Contents: The search string to match against subdirectory names in the path. Supports valid literal and wildcard characters, but not regular expressions.
Remove SourceFolder: Attempt to remove the source folder as well.
Recursive: If selected, it will include the current directory and all of its sub-directories.
Get File Info: This activity is used to get the information of a specific file.
InputProperties:
FilePath: String or string variable that holds the relative or absolute path of file that needs to be retrieved.
Output Properties:
FileInfo: It returns file information inSystem.IO.FileInfo datatype.
Get Files: This activity helps to retrieve the location of the specified files.
InputProperties:
SourceFolder: String or string variable that holds relative or absolute path of the file that needs to be retrieved.
Contents: The search string to match against the names of files in the path. This parameter can contain a combination of valid literal path and wildcard ( * and ?) characters, but it doesn”t support regular expressions.
Recursive: If selected, it will include the current directory and all of its sub-directories.
Get Folder Info: This activity is used to retrieve the properties of a specified folder.
InputProperties:
FolderPath: The folder from which properties are to be retrieved.
Output Properties:
FolderInfo: It returns folder information in System.IO.DirectoryInfo datatype.
Path Exists: This activity is used to check if the specified path exists or not.
Input Properties:
Path: The full path to be checked.
PathType: Specifies if the path points to a folder or a file.
Output Properties:
Exists: Determines if the folder or file was found.
Read Text File: This activity reads the content of the specified text file and stores it in a string variable.
Input Properties:
FileName: Full path of the file to be read.
Output Properties:
String: Extracted text from the file.
Rename File: This activity allows the user to rename the existing file.
Input Properties:
Source File: The relative or absolute path to the directory to search.
File Name: New name for the file.
KeepExtension: Keep extension of the file.
Rename Folder: This activity is used to Rename a Folder.
Input Properties:
Source Folder: The relative or absolute path to the directory to search.
FolderName: New name for the folder.
Wait For File Download: This activity waits for a specific file to be downloaded.
Input Properties:
FilePath: Full path of the file.
PollingInterval: Polling interval for checking the file.
Write Text File: This activity creates a text file and writes the specified string value to it. If the text file already exists, then its contents will be overwritten.