*
*/
protected String scanDirectory( final String path ) throws SQLException {
final Collection collection = Collection.findByPath( db, path );
if ( collection != null ) {
cm.scanDirectory( collection.getId(), new File(path) );
return "Scanning folder...";
}
else {
return "Invalid directory";