/** * Add a misc file. * * @param name the file name * @param path the relative path * @param newHash the new hash of the added content * @param isDirectory whether the file is a directory or not * @return the builder */ public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory) { return addFile(name, path, newHash, isDirectory, null); }
/** * Add a misc file. * * @param name the file name * @param path the relative path * @param newHash the new hash of the added content * @param isDirectory whether the file is a directory or not * @return the builder */ public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory) { return addFile(name, path, newHash, isDirectory, null); }
builder.addFile(n.getName(), n.getParent().getPathAsList(), n.getMetadataHash(), directory, getCondition(optionalPaths, n));
elementBuilder.addFile(misc.getName(), Arrays.asList(misc.getPath()), misc.getContentHash(), misc.isDirectory()); } else { // bundle
elementBuilder.addFile(misc.getName(), Arrays.asList(misc.getPath()), misc.getContentHash(), misc.isDirectory()); } else { // bundle