public class PathFunctions
extends java.lang.Object
| Constructor and Description |
|---|
PathFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
existsDir(java.io.File dir)
Returns whether a specified directory exists.
|
static boolean |
existsDir(java.lang.String dirName)
Returns whether a specified directory exists.
|
java.net.URL |
loadRes(java.lang.String path)
Wrapper for obtaining a URL using the ClassLoader to load a resource.
|
static void |
printCurrentWorkingDirectory()
Prints the current working directory using File.getCanonicalPath() and System.getProperty("user.dir").
|
public static void printCurrentWorkingDirectory()
public static boolean existsDir(java.lang.String dirName)
dirName - the name of the directory.public static boolean existsDir(java.io.File dir)
dir - the directory as an object of type File.public java.net.URL loadRes(java.lang.String path)
path - the path of a file or directory beginning at the resource root. (e.g. "profiles/file_3.txt").