company logo

FileHandle :: Rename - Rename a File

This functions renames the source file passed in cpath to the target file (Move) passed in target . If the file path passed in cpath does not exist, or when the file with the name passed in target does already exist, rename will fail.

Return value:  Return value ( logical  )

The function returns YES when the question was answered positively. Otherwise it returns NO .

Implementation details

logical FileHandle  :: Rename ( NPath &cpath, NPath &target )
  • cpath - Complete file or directory path
  • target - Complete path to target