final int collectionId = Integer.parseInt( p.get(Constants.WWW_UPLOADS_COLLECTION_ID) );
cm.scanDirectory( collectionId, dir );
cm.fireCollectionManagerEvent( CollectionManagerListener.UPDATE_COMPLETE, "Collection Updated!" );
// show user confirmation
final TUploadComplete tpl = new TUploadComplete();
tpl.setProperties( p );
tpl.setUser( getUser() );
tpl.setLocale( getLocale() );
getResponse().showHtml( tpl.makeRenderer() );
}
catch ( IOException e ) {
log.debug( e );