test if file has this permission
Changes the file-extension by renaming this file; if file does not have an extension, it adds the extension Example usage file"foo.java".changeExtensionTo(".scala")
checksum of this file (or directory) in hex format
If this is a directory, remove all its children If its a file, empty the contents
If this is a directory, remove all its children If its a file, empty the contents
this
Check if this directory contains this file
Check if this directory contains this file
true if this is a directory and it contains this file
destination
Deletes this file or directory
Deletes this file or directory
If this is set to true, an exception is thrown when delete fails (else it is swallowed)
extension (including the dot) of this file if it is a regular file and has an extension, else None
Util to glob from this file's path
Util to glob from this file's path
when set to true, any file visit exceptions (e.g. a read or permission error) would be silently ignored
Set of files that matched
true if this file (or the file found by following symlink) is a directory
true if file is not present or empty directory or 0-bytes file
This differs from the above as this checks if the JVM can read this file even though the OS cannot in certain platforms
This differs from the above as this checks if the JVM can read this file even though the OS cannot in certain platforms
isOwnerReadable
true if this file (or the file found by following symlink) is a regular file
true if this file is exactly same as that file For directories, it checks for equivalent directory structure
Almost same as isSameContentAs but uses faster md5 hashing to compare (and thus small chance of false positive) Also works for directories
destination
file size (for directories, return size of the directory) in bytes
Some(target) if this is a symbolic link (to target) else None
Similar to the UNIX command touch - create this file if it does not exist and set its last modification time
unzip to a temporary zip file
unzip to a temporary zip file
the zip file
Unzips this zip file
Unzips this zip file
destination folder; Creates this if it does not exist
The destination where contents are unzipped
Walk the directory tree recursively upto maxDepth
Walk the directory tree recursively upto maxDepth
List of children in BFS maxDepth level deep (includes self since self is at depth = 0)
Write byte array to file.
Write byte array to file. For large files, piping in streams is recommended
this
zip to a temp directory
zip to a temp directory
the target directory
Zips this file (or directory)
Zips this file (or directory)
The destination file; Creates this if it does not exists
The destination zip file
Scala wrapper around java.nio.files.Path