append some content to a file and take care of closing the file.
append some content to a file and take care of closing the file.
Usage:
write("./dir/hello.txt") { out => out.write("content") }
path of the file to write
writes some content to a file.
writes some content to a file.
path of the file to read
content of the file to write
writes some xml content to a file.
writes some xml content to a file.
path of the file to read
content of the file to write
matches if new File(path).
matches if new File(path).isDirectory
matches if new File(path).
matches if new File(path).isFile
matches if new File(path).
matches if new File(path).isHidden
matches if new File(path).
matches if new File(path).canRead
matches if new File(path).
matches if new File(path).canWrite
matches if new File(path).
matches if new File(path).isAbsolute
matches if new File(path).
matches if new File(path).exists
matches if 2 paths are the same regardless of their separators
matches if 2 paths are the same regardless of their separators
true if the file can be read
true if the file can be written
Copy an input stream to an output stream.
Copy an input stream to an output stream.
input stream
output stream
copy the content of a directory to another.
copy the content of a directory to another.
destination directory path
copy the content of a directory to another.
copy the content of a directory to another.
url of the directory to copy
destination directory path
Copy the content of a directory to another.
Copy the content of a directory to another.
path of the file to copy
destination directory path
Copy specs resources found either in the specs jar or in the classpath directories to an output directory
Copy specs resources found either in the specs jar or in the classpath directories to an output directory
name of the resource directory to copy
output directory where to copy the files to
creates a directory for a given path
creates a directory for a given path
creates a file for a given path.
creates a file for a given path. Create the parent directory if necessary.
delete a file
delete a file
true if the file exists
glob expression, for example: ./dir/**/.xml
the list of paths represented by the "glob" definition path
the file absolute path
the file canonical path
the file name
the file parent path
The getWriter function can be overriden to provide a mock writer writing to the console for example
The getWriter function can be overriden to provide a mock writer writing to the console for example
a Writer object opened on the file designated by path
the regular expression equivalent to a glob pattern (see the specs for Fragments)
matches if new File(path).
matches if new File(path).getAbsolutePath == absolutePath
matches if new File(path).
matches if new File(path).getCanonicalPath == canonicalPath
matches if new File(path).
matches if new File(path).getParent == parent
matches if new File(path).
matches if new File(path).getName == name
a FileInputStream for a given file path
true if the file is absolute
true if the File represented by this path is a directory
true if the file is a directory
true if the file is a file
true if the file is hidden
the files of that directory
matches if new File(path).
matches if new File(path).list == list(files)
the xml content of a file using the Xhtml parser
if the file contains several nodes, it wraps them up in a single artificial node
the xml content of a file, using the XML parser
creates a new directory
creates a new directory
reads the content of a file
reads the content of a file
the path of the file to read
the content of the file at path
deletes the directory and all directory content at the specified path and return the parent path of that directory
deletes the directory and all directory content at the specified path and return the parent path of that directory
true if 2 paths are the same according to their canonical representation
matcher aliases and implicits to use with be / have + matcher
matcher aliases and implicits to use with be / have + matcher
writes some content to a file and take care of closing the file.
writes some content to a file and take care of closing the file.
Usage:
write("./dir/hello.txt") { out => out.write("content") }
path of the file to write
writes some content to a file.
writes some content to a file.
path of the file to read
content of the file to write
writes some xml content to a file.
writes some xml content to a file.
path of the file to read
content of the file to write