rendered paste bodyif(! item.getClass().equals(AssetInfo.class))
return Errno.ENOTBLK;
String[] paths = path.split("/");
String parent_path = "";
for(int i = 1; i < paths.length -1; i++)
parent_path += "/" + paths[i];
Object parent_ws = this.ems.getItemAtPath(parent_path);
try {
this.ems.workspaceManager.removeChildFromWorkspace(this.ems.userAuth, ((AssetInfo)item).getUuid(), ((WorkspaceInfo)parent_ws).getUuid());
} catch(Exception e) {
throw new FuseException("Can not remove directory: " + path);
}