{
throw new InvalidPathException( "Invalid new directory name, '"
+ newName + "'." );
}
CloudStoreDirectory newDir = getDirectory( directory
.getParentDirectory( ).getPath( )
.combine(
new CloudStorePath( newName, true,
PathUtil.ROOT_DIRECTORY ) ).getAbsolutePath( ) );
if ( newDir.existsInStore( ) )
{
throw new DirectoryAlreadyExistsException( "Directory '"
+ directory.getPath( ).getAbsolutePath( )
+ "' already exists in the store." );
}