Change the permissions on the file represented by path
to perms
, asynchronously.
Change the permissions on the file represented by path
to perms
, asynchronously.
The permission String takes the form rwxr-x--- as
specified in {here}.
If the file is directory then all contents will also have their permissions changed recursively. Any directory permissions will
be set to dirPerms
, whilst any normal file permissions will be set to perms
.
Change the permissions on the file represented by path
to perms
, asynchronously.
Change the permissions on the file represented by path
to perms
, asynchronously.
The permission String takes the form rwxr-x--- as
specified here.
Synchronous version of String, String, Handler)
Synchronous version of String, Handler)
Change the ownership on the file represented by path
to user
and group
, asynchronously.
Synchronous version of Option[String], Option[String], AsyncResult[Void] => Unit).
Copy a file from the path from
to path to
, asynchronously.
Copy a file from the path from
to path to
, asynchronously.
If recursive
is true
and from
represents a directory, then the directory and its contents
will be copied recursively to the destination to
.
The copy will fail if the destination if the destination already exists.
Copy a file from the path from
to path to
, asynchronously.
Copy a file from the path from
to path to
, asynchronously.
The copy will fail if the destination already exists.
Synchronous version of String, boolean, Handler)
Synchronous version of String, Handler)
Creates an empty file with the specified path
and permissions perms
, asynchronously.
Creates an empty file with the specified path
, asynchronously.
Synchronous version of String, Handler)
Synchronous version of Handler)
Deletes the file represented by the specified path
, asynchronously.
Deletes the file represented by the specified path
, asynchronously.
If the path represents a directory and recursive = true
then the directory and its contents will be
deleted recursively.
Deletes the file represented by the specified path
, asynchronously.
Synchronous version of boolean, Handler)
Synchronous version of Handler)
Determines whether the file as specified by the path path
exists, asynchronously.
Synchronous version of Handler)
Returns properties of the file-system being used by the specified path
, asynchronously.
Synchronous version of Handler)
Create a hard link on the file system from link
to existing
, asynchronously.
Synchronous version of String, Handler)
Obtain properties for the link represented by path
, asynchronously.
Obtain properties for the link represented by path
, asynchronously.
The link will not be followed.
Synchronous version of Handler)
Create the directory represented by path
, asynchronously.
Create the directory represented by path
, asynchronously.
The new directory will be created with permissions as specified by perms
.
The permission String takes the form rwxr-x--- as specified
in here.
If createParents
is set to true
then any non-existent parent directories of the directory
will also be created.
The operation will fail if the directory already exists.
Create the directory represented by path
, asynchronously.
Create the directory represented by path
, asynchronously.
The new directory will be created with permissions as specified by perms
.
The permission String takes the form rwxr-x--- as specified
in here.
The operation will fail if the directory already exists.
Create the directory represented by path
, asynchronously.
Create the directory represented by path
, asynchronously.
If createParents
is set to true
then any non-existent parent directories of the directory
will also be created.
The operation will fail if the directory already exists.
Create the directory represented by path
, asynchronously.
Create the directory represented by path
, asynchronously.
The operation will fail if the directory already exists.
Synchronous version of String, boolean, Handler)
Synchronous version of String, Handler)
Synchronous version of boolean, Handler)
Synchronous version of Handler)
Move a file from the path from
to path to
, asynchronously.
Move a file from the path from
to path to
, asynchronously.
The move will fail if the destination already exists.
Synchronous version of String, Handler)
Open the file represented by path
, asynchronously.
Open the file represented by path
, asynchronously.
If read
is true
the file will be opened for reading. If write
is true
the file
will be opened for writing.
If the file does not already exist and
createNew
is true
it will be created with the permissions as specified by perms
, otherwise
the operation will fail.
If flush
is true
then all writes will be automatically flushed through OS buffers to the underlying
storage on each write.
Open the file represented by path
, asynchronously.
Open the file represented by path
, asynchronously.
If read
is true
the file will be opened for reading. If write
is true
the file
will be opened for writing.
If the file does not already exist and
createNew
is true
it will be created with the permissions as specified by perms
, otherwise
the operation will fail.
Write operations will not automatically flush to storage.
Open the file represented by path
, asynchronously.
Open the file represented by path
, asynchronously.
The file is opened for both reading and writing. If the file does not already exist and
createNew
is true
it will be created with the permissions as specified by perms
, otherwise
the operation will fail.
Write operations will not automatically flush to storage.
Open the file represented by path
, asynchronously.
Open the file represented by path
, asynchronously.
The file is opened for both reading and writing. If the file does not already exist it will be created with the
permissions as specified by perms
.
Write operations will not automatically flush to storage.
Open the file represented by path
, asynchronously.
Open the file represented by path
, asynchronously.
The file is opened for both reading and writing. If the file does not already exist it will be created. Write operations will not automatically flush to storage.
Synchronous version of String, boolean, boolean, boolean, boolean, Handler)
Synchronous version of String, boolean, boolean, boolean, Handler)
Synchronous version of String, boolean, Handler)
Synchronous version of String, Handler)
Synchronous version of Handler)
Obtain properties for the file represented by path
, asynchronously.
Obtain properties for the file represented by path
, asynchronously.
If the file is a link, the link will be followed.
Synchronous version of Handler)
Read the contents of the directory specified by path
, asynchronously.
Read the contents of the directory specified by path
, asynchronously.
The parameter filter
is a regular expression. If filter
is specified then only the paths that
match @{filter}will be returned.
The result is an array of String representing the paths of the files inside the directory.
Read the contents of the directory specified by path
, asynchronously.
Read the contents of the directory specified by path
, asynchronously.
The result is an array of String representing the paths of the files inside the directory.
Synchronous version of String, Handler)
Synchronous version of Handler)
Reads the entire file as represented by the path path
as a org.vertx.scala.core.buffer.Buffer, asynchronously.
Reads the entire file as represented by the path path
as a org.vertx.scala.core.buffer.Buffer, asynchronously.
Do not user this method to read very large files or you risk running out of available RAM.
Synchronous version of Handler)
Returns the path representing the file that the symbolic link specified by link
points to, asynchronously.
Synchronous version of Handler)
Create a symbolic link on the file system from link
to existing
, asynchronously.
Synchronous version of String, Handler)
Truncate the file represented by path
to length len
in bytes, asynchronously.
Truncate the file represented by path
to length len
in bytes, asynchronously.
The operation will fail if the file does not exist or len
is less than zero
.
Synchronous version of long, Handler)
Unlinks the link on the file system represented by the path link
, asynchronously.
Synchronous version of Handler)
Helper method wrapping invocations and returning the Scala type, once again to help provide fluent return types
Helper method wrapping invocations and returning the Scala type, once again to help provide fluent return types
Creates the file, and writes the specified Buffer data
to the file represented by the path path
,
asynchronously.
Synchronous version of Buffer, Handler)
Contains a broad set of operations for manipulating files.
An asynchronous and a synchronous version of each operation is provided.
The asynchronous versions take a handler which is called when the operation completes or an error occurs.
The synchronous versions return the results, or throw exceptions directly.
It is highly recommended the asynchronous versions are used unless you are sure the operation will not block for a significant period of time.
Instances of FileSystem are thread-safe.