public void remove(Stack stack) { Collection<AbsFile> files = this.files.getValue(stack); String dir = this.dir.getValue(stack); Object host = this.host.getValue(stack); VDLFileCache cache = getCache(stack); List<Object> rem = new ArrayList<Object>(); boolean force = this.force.getValue(stack); for (AbsFile f : files) { File cf = new File(f.getName(), dircat(dir, PathUtils.remoteDirName(f)), host, 0); CacheReturn cr = cache.unlockEntry(cf, force); rem.addAll(cr.remove); } cacheFilesToRemove.setValue(stack, rem); }