FileConnectionWrapper fConnWrap = null;
try {
fConnWrap = new FileConnectionWrapper( args[ 0 ].toString() );
if( !fConnWrap.exists() ) {
throw new FileIOException( FileIOException.DIRECTORY_NOT_FOUND );
}
if( !fConnWrap.isDirectory() ) {
throw new FileIOException( FileIOException.NOT_A_DIRECTORY );
}
if( args[ 1 ].toString().length() == 0 ) {
throw new FileIOException( FileIOException.NOT_A_DIRECTORY );
}
fConnWrap.getFileConnection().rename( args[ 1 ].toString() );
} finally {
if( fConnWrap != null ) {