NEW4.00.00 · Released 21 December 2022
NEWfinPOWER Connect
Released in
4.00.00
21 December 2022
  1. Opened1 Jul
  2. Closed1 Jul
  3. Released21 Dec
Article 19312 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.