/** * Recursively fills the pathBuilder with the full path * @param pathBuilder a StringBuilder used to create the path. * @param escapePath Whether the path need to be escaped for consumption by * a shell command line. */ protected void fillPathBuilder(StringBuilder pathBuilder, boolean escapePath) { if (isRoot) { return; } if (parent != null) { parent.fillPathBuilder(pathBuilder, escapePath); } pathBuilder.append(FILE_SEPARATOR); pathBuilder.append(escapePath ? escape(name) : name); }
/** * Recursively fills the pathBuilder with the full path * @param pathBuilder a StringBuilder used to create the path. * @param escapePath Whether the path need to be escaped for consumption by * a shell command line. */ protected void fillPathBuilder(StringBuilder pathBuilder, boolean escapePath) { if (isRoot) { return; } if (parent != null) { parent.fillPathBuilder(pathBuilder, escapePath); } pathBuilder.append(FILE_SEPARATOR); pathBuilder.append(escapePath ? escape(name) : name); }