Creates a new Path with the specified path appended.
Creates a new Path with the specified path appended. Assumes the type of the new component implies the type of the result.
Creates a BufferedReader and applies the closure, automatically closing it on completion.
Creates a BufferedReader and applies the closure, automatically closing it on completion.
Wraps a BufferedReader around the result of reader().
Wraps a BufferedReader around the result of reader().
Wraps a BufferedWriter around the result of writer().
Calls to methods requiring byte<->char transformations should be offered in a form which allows specifying the codec.
Calls to methods requiring byte<->char transformations should be offered in a form which allows specifying the codec. When it is not specified, the one discovered at creation time will be used, which will always find the one in scala.io.Codec if no other is available. This can be overridden to use a different default.
Deletes the path recursively.
Deletes the path recursively. Returns false on failure. Use with caution!
Obtains an InputStream.
Obtains a OutputStream.
The path of the parent directory, or root if path is already root
Calls println on each string (so it adds a newline in the PrintWriter fashion.)
Obtains an InputStreamReader wrapped around a FileInputStream.
Obtains an InputStreamReader wrapped around a FileInputStream.
Reflection since we're into the java 6+ API.
Convenience function to import entire file into a String.
Convenience function to import entire file into a String.
If this path is absolute, returns it: otherwise, returns an absolute path made up of root / this.
If this path is absolute, returns it: otherwise, returns an absolute path made up of root / this.
This method aspires to be the fastest way to read a stream of known length into memory.
This method aspires to be the fastest way to read a stream of known length into memory.
Equivalent to walkFilter(_ => false).
Equivalent to walkFilter(_ => false).
If this path is a container, recursively iterate over its contents.
If this path is a container, recursively iterate over its contents. The supplied condition is a filter which is applied to each element, with that branch of the tree being closed off if it is true. So for example if the condition is true for some subdirectory, nothing under that directory will be in the Iterator; but otherwise each file and subdirectory underneath it will appear.
Creates a new file and writes all the Strings to it.
Obtains an OutputStreamWriter wrapped around a FileOutputStream.
Obtains an OutputStreamWriter wrapped around a FileOutputStream. This should behave like a less broken version of java.io.FileWriter, in that unlike the java version you can specify the encoding.
An abstraction for files. For character data, a Codec can be supplied at either creation time or when a method involving character data is called (with the latter taking precedence if supplied.) If neither is available, the value of scala.io.Codec.default is used.
2.8 Note: This is library is considered experimental and should not be used unless you know what you are doing.