protected FtpFile getUniqueFile(FtpIoSession session, FtpFile oldFile)
throws FtpException {
FtpFile newFile = oldFile;
FileSystemView fsView = session.getFileSystemView();
String fileName = newFile.getAbsolutePath();
while (newFile.doesExist()) {
newFile = fsView.getFile(fileName + '.'
+ System.currentTimeMillis());
if (newFile == null) {
break;
}