static public String toString(List<String> paths) { return toString(paths, 0, paths.size(), "/"); }
static public Path toPath(List<String> paths, int fromIndex, int toIndex) { return Paths.get(toString(paths, fromIndex, toIndex, "/")); }
static public Path toPath(List<String> paths) { return Paths.get(toString(paths)); }
static public Globber globber(String rootWithGlob) { List<String> paths = BasicPaths.split(rootWithGlob); int globIndex = detectGlobIndex(paths); String root = null; // does it have a root? if (globIndex > 0) { root = BasicPaths.toString(paths, 0, globIndex, "/"); } Globber globber = new Globber(root); // does it have a glob? if (globIndex > -1) { String glob = BasicPaths.toString(paths, globIndex, paths.size(), "/"); globber.include(glob); } return globber; }
static public Path toPath(List<String> paths, int fromIndex, int toIndex) { return Paths.get(toString(paths, fromIndex, toIndex, "/")); }
static public Globber globber(String rootWithGlob) { List<String> paths = BasicPaths.split(rootWithGlob); int globIndex = detectGlobIndex(paths); String root = null; // does it have a root? if (globIndex > 0) { root = BasicPaths.toString(paths, 0, globIndex, "/"); } Globber globber = new Globber(root); // does it have a glob? if (globIndex > -1) { String glob = BasicPaths.toString(paths, globIndex, paths.size(), "/"); globber.include(glob); } return globber; }
static public String toString(List<String> paths) { return toString(paths, 0, paths.size(), "/"); }
static public Path toPath(List<String> paths) { return Paths.get(toString(paths)); }