public final class DirUtil
extends java.lang.Object
IntershopProjLayout| Modifier and Type | Method and Description |
|---|---|
static java.nio.file.Path |
createDir(java.nio.file.Path path)
Create dir
|
static java.util.Optional<java.nio.file.Path> |
getDirectoryByName(java.nio.file.Path root,
java.lang.String dirName)
Get the first directory by given name by traversing the root path
|
static java.lang.String |
getJavaPackageName(java.nio.file.Path packageRoot,
java.nio.file.Path packageFolder)
Return package name from the root to the target Path
|
static boolean |
hasSubName(java.nio.file.Path path,
java.lang.String... names) |
public static java.util.Optional<java.nio.file.Path> getDirectoryByName(java.nio.file.Path root,
java.lang.String dirName)
root - path to search for dir namedirName - name of the directory to findpublic static boolean hasSubName(java.nio.file.Path path,
java.lang.String... names)
path - names - public static java.lang.String getJavaPackageName(java.nio.file.Path packageRoot,
java.nio.file.Path packageFolder)
packageRoot - root where it startspackageFolder - until the targetpublic static java.nio.file.Path createDir(java.nio.file.Path path)
path - path to create