protected AbstractZipNode(String filepath, ZipFileSystem fileSystem) { this.filepath = filepath; // Root if (!filepath.equals("")) { this.name = FilenameHelper.getName(filepath); } this.fileSystem = fileSystem; }
public AbstractStorageEventTask(String pid, StorageProvider storageProvider, String relPath) { this.pid = pid; this.storageProvider = storageProvider; // FilenameHelper.normalizePathSeparators returns null if relPath is null. this.relPath = FilenameHelper.normalizePathSeparators(relPath); if (this.relPath != null) { this.dataPrependedRelPath = prependDataDir(this.relPath); // this.absFilepath = storageProvider.resolve(dataPrependedRelPath); } }