All pastes #447037 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-18 20:13 UTC
rendered paste body
if(! 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);
		}