public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asPath(File file)
platform independent file.getPath()
|
static String |
asPath(String path)
platform independent file.getPath()
|
static String |
fileExt(File src) |
static String |
fileExt(String name) |
static FileFilter |
getFileFilter()
Filters files based on their file extension.
|
static File |
getRunningLocation()
Works out the folder where JBake is running from.
|
static boolean |
isExistingFolder(File f) |
static String |
sha1(File sourceFile)
Computes the hash of a file or directory.
|
public static FileFilter getFileFilter()
public static boolean isExistingFolder(File f)
public static File getRunningLocation() throws Exception
Exceptionpublic static String sha1(File sourceFile) throws Exception
sourceFile - the original file or directoryExceptionpublic static String asPath(File file)
file - the file to transform, or nullnull
Needed to transform Windows path separators into slashes.Copyright © 2014. All Rights Reserved.