public class PathUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PathUtils.Finder |
| Constructor and Description |
|---|
PathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
delete(Path folder,
List<String> noDeleteFiles) |
static void |
delete(Path basePath,
Path path,
List<String> noDeleteFiles) |
static void |
deleteRecursive(Path path) |
static Path |
getPathInClasspath(String resourceName) |
static Path |
getPathInClasspath(URL resource) |
static List<Path> |
getPaths(String[] pathNames,
String globPattern) |
static boolean |
isEmptyDir(Path path) |
static List<Path> |
searchFiles(Path path,
String globPattern) |
public static Path getPathInClasspath(String resourceName) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic static Path getPathInClasspath(URL resource) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic static void delete(Path folder, List<String> noDeleteFiles) throws IOException
IOExceptionpublic static void delete(Path basePath, Path path, List<String> noDeleteFiles) throws IOException
IOExceptionpublic static List<Path> getPaths(String[] pathNames, String globPattern) throws IOException
IOExceptionpublic static List<Path> searchFiles(Path path, String globPattern) throws IOException
IOExceptionpublic static void deleteRecursive(Path path) throws IOException
IOExceptionpublic static boolean isEmptyDir(Path path) throws IOException
IOExceptionCopyright © 2016. All rights reserved.