FilesHelper Class |
Namespace: Ocaramba.Helpers
public static class FilesHelper
The FilesHelper type exposes the following members.
Name | Description | |
---|---|---|
CopyFile(Double, String, String, String) |
Copy the file and check if file was copied with given timeout, shorten the name of file if needed be removing "_".
| |
CopyFile(Double, String, String, String, String) |
Copy the file and check if file was copied with given timeout, shorten the name of file if needed be removing "_".
| |
CountFiles(String) |
Counts the files.
| |
CountFiles(String, FileType) |
Counts the files of given type.
| |
DeleteFile |
Delete file in given folder if exists.
| |
GetAllFiles(String) |
Gets all files from folder.
| |
GetAllFiles(String, String) |
Gets all files from folder, use postfixFilesName in search pattern.
| |
GetAllFilesFromAllSubFolders(String) |
Gets all files from all sub folders.
| |
GetAllFilesFromAllSubFolders(String, String) |
Gets all files from all sub folders, use postfixFilesName in search pattern.
| |
GetFileByName |
Get file by its name in given folder.
| |
GetFilesOfGivenType(String, FileType) |
Gets the files of given type.
| |
GetFilesOfGivenType(String, FileType, String) |
Gets the files of given type, use postfixFilesName in search pattern.
| |
GetFilesOfGivenTypeFromAllSubFolders(String, FileType) |
Gets the files of given type from all sub folders.
| |
GetFilesOfGivenTypeFromAllSubFolders(String, FileType, String) |
Gets the files of given type from all sub folders, use postfixFilesName in search pattern.
| |
GetFolder |
Gets the folder from app.config as value of given key.
| |
GetLastFile(String) |
Gets the last file.
| |
GetLastFile(String, FileType) |
Gets the last file of given type.
| |
RenameFile(Double, String, String, String) |
Rename the file and check if file was renamed with given timeout, shorten the name of file if needed be removing "_".
| |
RenameFile(String, String, String, FileType) |
Rename the file of given type and check if file was renamed with ShortTimeout, shorten the name of file if needed be removing "_".
| |
ReturnFileExtension |
Returns the file extension.
| |
WaitForFile(Int32, String) |
Waits for file with LongTimeout till number of files increase in sub folder, checks the size of the current file.
| |
WaitForFile(Double, Int32, String, Boolean) |
Waits for file for given timeout till number of files increase in sub folder, checks the size of the current file.
| |
WaitForFileOfGivenName(String, String) |
Waits for file of given name with LongTimeout, checks the size of the current file.
| |
WaitForFileOfGivenName(Double, String, String) |
Waits for file with given name with given timeout, checks the size of the current file.
| |
WaitForFileOfGivenName(String, String, Boolean) |
Waits for file of given name with LongTimeout, checks the size of the current file.
| |
WaitForFileOfGivenName(Double, String, String, Boolean) |
Waits for file with given name with given timeout, checks the size of the current file.
| |
WaitForFileOfGivenType(FileType, Int32, String) |
Waits for file of given type for LongTimeout till number of files increase in sub folder, checks the size of the current file.
| |
WaitForFileOfGivenType(FileType, Double, Int32, String, Boolean) |
Waits for file of given type for given timeout till number of files increase in sub folder,checks the size of the current file.
|