filePathOperations Class |
Namespace: imbSCI.Core.extensions.io
The filePathOperations type exposes the following members.
| Name | Description | |
|---|---|---|
| ApplicationHomePath | ||
| FILENAME_FORBIDEN |
static and autoinitiated object
| |
| FILENAME_REPLACE |
static and autoinitiated object
| |
| PATH_FORBIDEN |
static and autoinitiated object
| |
| PATH_REPLACE |
static and autoinitiated object
|
| Name | Description | |
|---|---|---|
| Add | ||
| addFileNameSufix |
2017: inserts supplied sufix before .extension and after filenameWithoutExtension. It will put \"_\" between original filename and sufix
| |
| addTimeStamp |
Inserts timestamp as filename sufix
| |
| addUniqueSufix |
Path unique sufix automatic counter. It will add to filename numeric counter of priorly existed files. Also it may add preTestPrefix on filename at beginning of the procedure.
| |
| findFiles |
Pronalazi fajlove koji odgovaraju pretrazi
| |
| getAbsoluteDirectory |
2017: Returns DirectoryInfo - found or created for path made from> current directory, folderEnum and subfolderPath
| |
| getAbsoluteFilePath |
2017: Returns the absolute path - starting with the current directory, adding folderEnum and subfolderPath - if any supplied.
| |
| getCleanFilepath | ||
| getCleanFilePath |
2017: Removes forbiden characters from file path and double \\\\ but leaves underline
| |
| getCleanPropertyName |
Izdvaja ime propertija u member path-u. --- brise sve simbole koji cine elemente patha
| |
| getFilename |
2017c> Makes proper filename our of any string -- better than> getCleanFilePath(String) (Izbacuje iz imena fajla sve nepravilne karaktere)
| |
| GetImageFormatByExtension |
Gets the image format by extension.
| |
| getPathOrDefault |
Ako je path prazan onda vraca podrazumevani path
| |
| getWritableFile |
Gets writable file based on selected mode. By default it will do overwrite. Autorename calls addUniqueSufix(String, String) extension that counts existing files and sets proper number.
| |
| openFileToList(FileInfo, Boolean, Encoding) |
Opens the file to string list
| |
| openFileToList(String, Boolean, Encoding) |
Opens the file to string list
| |
| removeStrings |
Removes all substrings from the input string
| |
| saveStringToFile |
Saves complete string into path
|
| Name | Description | |
|---|---|---|
| AUTORENAME_FILE_COUNT_LIMIT | ||
| regex_propertyNameSelect | ||
| RETRY_DELAY |
Miliseconds to wait before retry with failed operation
|