Class PathUtils
java.lang.Object
org.opensearch.common.io.PathUtils
Utilities for creating a Path from names,
or accessing the default FileSystem.
This class allows the default filesystem to be changed during tests.
- Opensearch.internal:
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathReturns aPathfrom name components.static PathReturns aPathfrom a URIstatic PathTries to resolve the given path against the list of available roots.static PathTries to resolve the given file uri against the list of available roots.static FileSystemReturns the default FileSystem.
-
Method Details
-
get
Returns aPathfrom name components.This works just like
Paths.get(). Remember: just likePaths.get()this is NOT A STRING CONCATENATION UTILITY FUNCTION.Remember: this should almost never be used. Usually resolve a path against an existing one!
-
get
-
get
-
get
-
getDefaultFileSystem
Returns the default FileSystem.
-