- listContents
Lists all contents of the referenced directory. Supported protocols include file
and jar.
- urlToFile
Converts the given URL to its corresponding File. This method is similar to
calling new File(url.toU
- getAllVersions
Lists all versions of a given (possibly versioned) file name.
- getExtension
Extracts the file extension from a file path.
- readFile
Reads the contents of the given file into a new byte array.
- createTemporaryDirectory
Creates a temporary directory. Since there is no atomic operation to do that, we
create a temporary
- deleteRecursively
Deletes a directory recursively.
- findResources
Finds URLs of available resources. Both JAR files and files on disk are
searched, according to the f
- getPath
Gets a standardized path based on the given one, with the directory separator
standardized from the
- limitPath
Compacts a path into a given number of characters. The result is similar to the
Win32 API PathCompac
- shortenPath
Shortens the path based on the given maximum number of path elements. E.g.,
"C:/1/2/test.txt" return
- stripFilenameVersion