Commit 4dd40825 authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko
Browse files

Allow recusive LFN deletion in CatalogueAPI

parent 69f2c560
......@@ -145,6 +145,24 @@ public class CatalogueApiUtils {
return false;
}
/**
* Remove a LFN in the Catalogue
*
* @param path
* @param recursive
* @return state of the LFN's deletion <code>null</code>
*/
public boolean removeLFN(final String path, final boolean recursive) {
try {
return Dispatcher.execute(new RemoveLFNfromString(commander.getUser(), path, recursive)).wasRemoved();
} catch (final ServerException e) {
logger.log(Level.WARNING, "Could not remove the LFN: " + path);
e.getCause().printStackTrace();
}
return false;
}
/**
* Move a LFN in the Catalogue
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment