- java.lang.Object
-
- jp.cafebabe.kunai.util.PathHelper
-
public class PathHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description PathHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandeleteAll(Path path)static booleanendsWith(Path path, String suffix)static booleanexists(Path path)static booleanexists(Path givenPath, FileSystem givenSystem)static Optional<BasicFileAttributes>readAttributes(Path path)static Optional<BasicFileAttributes>readAttributes(Path givenPath, FileSystem system)static Optional<BasicFileAttributes>readAttributes(Path givenPath, FileSystemProvider provider)
-
-
-
Method Detail
-
readAttributes
public static Optional<BasicFileAttributes> readAttributes(Path path)
-
readAttributes
public static Optional<BasicFileAttributes> readAttributes(Path givenPath, FileSystemProvider provider)
-
readAttributes
public static Optional<BasicFileAttributes> readAttributes(Path givenPath, FileSystem system)
-
deleteAll
public static boolean deleteAll(Path path)
-
exists
public static boolean exists(Path path)
-
exists
public static boolean exists(Path givenPath, FileSystem givenSystem)
-
-