public static File renameFileWithSystemtime ( final File fileToRename ) throws IOException , FileIsADirectoryException { final String newFilenameWithSystemtime = appendSystemtimeToFilename ( fileToRename ) ; final File fileWithNewName = new File ( fileToRename . getParent ( ) , newFilenameWithSystemtime ) ; renameFile ( fileToRename , fileWithNewName , true ) ; return fileWithNewName ; }
Renames the given file and add to the filename the systemtime .