Class FileUtilities
java.lang.Object
de.gurkenlabs.litiengine.util.io.FileUtilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringThis method combines the specified basepath with the parts provided as arguments.static booleanfindFilesByExtension(List<String> fileNames, Path dir, String extension) static StringgetExtension(File file) static StringgetExtension(String path) static StringgetFileName(String path) static StringgetFileName(String path, boolean extension) static StringgetFileName(URL path) static StringgetParentDirPath(String uri) static StringgetParentDirPath(URI uri) static StringhumanReadableByteCount(long bytes) static StringhumanReadableByteCount(long bytes, boolean decimal)
-
Method Details
-
deleteDir
-
findFilesByExtension
-
findFiles
-
getExtension
-
getExtension
-
getFileName
-
getFileName
-
getFileName
-
getParentDirPath
-
getParentDirPath
-
combine
This method combines the specified basepath with the parts provided as arguments. The output will use the path separator of the current system;- Parameters:
basePath- The base path for the combined path.paths- The parts of the path to be constructed.- Returns:
- The combined path.
-
humanReadableByteCount
-
humanReadableByteCount
-