Dir(String,
Boolean,
String) |
Only gets those files that fulfill a specified criteria. |
Name |
Type |
Description |
fullPath |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
|
Type |
Description |
List<FileInfo> |
List of selected files. |
|
CopyFiles(String, Boolean, String, String, Boolean) |
Copies the selected files to a new destination. Overwriting a file of the same name is allowed. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
fullPathDestination |
String |
Destination where the selected files will be copied. |
overWrite |
Boolean |
If true and the file exists in destination, it will be overwritten. |
|
void
|
CopyFilesAndStructure(String, Boolean, String, String, Boolean) |
Creates original directory structure and copies the selected files into
the new destination. Overwriting a file of the same name is allowed. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
fullPathDestination |
String |
Destination where the selected files will be copied. |
overWrite |
Boolean |
If true and the file exists in destination, it will be overwritten. |
|
void
|
CopyStructureAndMoveFiles(String, Boolean, String, String, Boolean) |
Creates original directory structure and moves the selected files into the new destination. Overwriting a file of the same name is allowed. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
fullPathDestination |
String |
Destination where the selected files will be copied. |
overWrite |
Boolean |
If true and the file exists in destination, it will be overwritten. |
|
void
|
Zip(String, Boolean, String, String, String, Boolean) |
Zips selected files in new zip file in the specified destination. Overwriting a file of the same name is allowed. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
fullPathDestination |
String |
Destination where the zip file will be created. |
zipFileName |
String |
Name of zip file. |
overWrite |
Boolean |
If true and the zip file exists in destination, it will be overwritten. |
|
void |
Unzip(String, String, Boolean) |
Unzip the zip file in the specified destination, with or without the original directory structure. |
Name |
Type |
Description |
fullPathZipFile |
String |
Path and zip file name. |
fullPathToUnzip |
String |
Destination where the zip file will be unzipped. |
unZipWithDirectoryStructure |
Boolean |
If true, unzips files with the directory structure. |
|
void
|
RenameFiles(String, Boolean, String, String) |
Renames the selected files. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
newFileName |
String |
New filename. |
|
void
|
AddPrefixToFileName(String, Boolean, String, String) |
Adds prefix in filename of selected files. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
prefix |
String |
Prefix that will be added to the filename. |
|
void
|
AddSuffixToFileName(String,boolean,String,String) |
Adds suffix in filename of selected files. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
suffix |
String |
Suffix that will be added to the filename. |
|
void |
ChangeExtension(String, Boolean, String, String) |
Changes extension of selected files. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
newExtension |
String |
New extension. |
|
void
|
MoveFiles(String, Boolean, String, String, Boolean) |
Moves the selected files to a new destination. Overwriting a file of the same name is allowed. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
fullPathDestination |
String |
Destination where the selected files will be moved. |
forceToMove |
Boolean |
If true and the file exists in destination, it will be overwritten. |
|
void |
DeleteFiles(String, Boolean, String) |
Deletes the selected files. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
|
void |
ReplaceValueInFileName(String, Boolean, String, String, String) |
Replaces a string in filename of selected files with a new string. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
oldValue |
String |
String being replaced. |
newValue |
String |
New string. |
|
void
|
ReplaceRegexInFileName(String, Boolean, String, String, String) |
Replaces a pattern in filename of selected files with a new string. |
Name |
Type |
Description |
fullPathSource |
String |
Directory to be explored. |
recursive |
Boolean |
If true, explores main directory and sub-directories. |
whereClause |
String |
The conditions that must be met for files to be selected. |
pattern |
String |
Regex pattern being replaced. |
newValue |
String |
New String. |
|
void
|