public abstract class RelativePathUtility extends Object
Constructor and Description |
---|
RelativePathUtility() |
Modifier and Type | Method and Description |
---|---|
static String |
getAbsolutePath(String basePath,
String relativePath)
Generate an absolute path for a relative path in relation to the base path.
|
static String |
getName(String path)
Return the name of the file or folder denoted by this path.
|
static String |
getParentPath(String path)
Return the path to the parent folder for this file or folder path.
|
static String |
getRelativePath(String basePath,
String absolutePath)
Generate a relative path for a file relative to the base path.
|
public static String getRelativePath(String basePath, String absolutePath)
basePath
- Base container location.absolutePath
- Absolute path of the file to make relative to the base path.public static String getAbsolutePath(String basePath, String relativePath)
basePath
- Base container location.relativePath
- Relative path of the file to make absolute to the base path.public static String getParentPath(String path)
path
- the path to useCopyright (c) 2020, SAS Institute Inc., Cary, NC, USA