public final class LocalPath extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<Path> |
findWorkingDirectory()
Returns the custom working directory.
|
static Path |
of(String path)
Returns a local path.
|
static Path |
of(String path,
Path defaultWorkingDirectory)
Returns a local path.
|
public static Optional<Path> findWorkingDirectory()
empty
if it is not definedpublic static Path of(String path)
#of(String, Path) of(path, Paths.get("."))
.path
- the path stringCommandConfigurationException
- if the path cannot be resolvedpublic static Path of(String path, Path defaultWorkingDirectory)
path
- the path stringdefaultWorkingDirectory
- the default working directory (nullable)CommandConfigurationException
- if the path cannot be resolvedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.