Article Details
Id: | 19312 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 4.00.00 |
Opened: | 01/07/2022 |
Closed: | 01/07/2022 |
Released: | 21/12/2022 |
Job: | J029092 |
Business Layer; ISFileUtilities; Functions added to retrieve, move and copy files with unique file names
The following Functions have been added to ISFileUtilities:
- CopyFileUnique
- MoveFileUnique
- GetFileNameUnique
These functions allow Scripts to move and / or copy a file or simply retrieve a unique file name which will not error if a file of the same name already exists, and will not overwrite it.
- GetFileNameUnique
- Accepts an existing file name, and will return a modified, unique, version if the specified file name already exists in the folder.
- CopyFileUnique and MoveFileUnique
- These functions will copy / move a file to another location, but if the destination file name already exists, will use GetFileNameUnique to generate a unique filename so the file can be safely copied or moved without a duplicate error, or the file being overwritten.