{
throw new InvalidPathException( "Invalid new file name, '"
+ newName + "'." );
}
CloudStoreFile newFile = getFile( file.getParentDirectory( ).getPath( )
.combine(
new CloudStorePath( newName, false,
PathUtil.ROOT_DIRECTORY ) ).getAbsolutePath( ) );
if ( newFile.existsInStore( ) )
{
throw new FileAlreadyExistsException( "File '"
+ newFile.getPath( ).getAbsolutePath( )
+ "' already exists in the store." );
}
sendRenameFileRequest( file, newName );
}