Change the permissions on the file represented by path
to perms
, asynchronously.
The permission String takes the form rwxr-x--- as specified here.
Change the permissions on the file represented by path
to perms
, asynchronously.
The permission String takes the form rwxr-x--- as specified here.
Blocking version of [#chmod(String, String, Handler)] FileSystem
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.
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
.
Blocking version of {@link FileSystem#chmodRecursive}
Change the ownership on the file represented by path
to user
and {code group}, asynchronously.
Change the ownership on the file represented by path
to user
and {code group}, asynchronously.
Blocking version of {@link FileSystem#chown}
Copy a file from the path from
to path to
, asynchronously.
The copy will fail if the destination already exists.
Copy a file from the path from
to path to
, asynchronously.
The copy will fail 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.
Blocking version of {@link FileSystem#copy}
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.
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.
Blocking version of {@link FileSystem#copyRecursive}
Creates an empty file with the specified path
, asynchronously.
Creates an empty file with the specified path
, asynchronously.
Creates an empty file with the specified path
and permissions perms
, asynchronously.
Creates an empty file with the specified path
and permissions perms
, asynchronously.
Blocking version of {@link FileSystem#createFile}
Blocking version of {@link FileSystem#createFile}
Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.
The new directory will be created with permissions as specified by perms
.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.
The new directory will be created with permissions as specified by perms
.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new directory in the directory provided by the path path
, using the given
prefix to generate its name, asynchronously.
The new directory will be created with permissions as specified by perms
.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new directory in the directory provided by the path path
, using the given
prefix to generate its name, asynchronously.
The new directory will be created with permissions as specified by perms
.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Blocking version of {@link FileSystem#createTempDirectory}
Blocking version of {@link FileSystem#createTempDirectory}
Blocking version of {@link FileSystem#createTempDirectory}
Creates a new file in the default temporary-file directory, using the given prefix and suffix to generate its name, asynchronously.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new file in the default temporary-file directory, using the given prefix and suffix to generate its name, asynchronously.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new file in the directory provided by the path dir
, using the given
prefix and suffix to generate its name, asynchronously.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new file in the directory provided by the path dir
, using the given
prefix and suffix to generate its name, asynchronously.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new file in the directory provided by the path dir
, using the given
prefix and suffix to generate its name, asynchronously.
The new directory will be created with permissions as specified by perms
.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Creates a new file in the directory provided by the path dir
, using the given
prefix and suffix to generate its name, asynchronously.
The new directory will be created with permissions as specified by perms
.
As with the File.createTempFile
methods, this method is only
part of a temporary-file facility.A #addShutdownHook shutdown-hook,
or the deleteOnExit mechanism may be used to delete the directory automatically.
Blocking version of {@link FileSystem#createTempFile}
Blocking version of {@link FileSystem#createTempFile}
Blocking version of {@link FileSystem#createTempFile}
Deletes the file represented by the specified path
, asynchronously.
Deletes the file represented by the specified path
, asynchronously.
Blocking version of {@link FileSystem#delete}
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.
If the path represents a directory and recursive = true
then the directory and its contents will be
deleted recursively.
Blocking version of {@link FileSystem#deleteRecursive}
Determines whether the file as specified by the path path
exists, asynchronously.
Determines whether the file as specified by the path path
exists, asynchronously.
Blocking version of {@link FileSystem#exists}
Returns properties of the file-system being used by the specified path
, asynchronously.
Returns properties of the file-system being used by the specified path
, asynchronously.
Blocking version of {@link FileSystem#fsProps}
Create a hard link on the file system from link
to existing
, asynchronously.
Create a hard link on the file system from link
to existing
, asynchronously.
Blocking version of {@link FileSystem#link}
Obtain properties for the link represented by path
, asynchronously.
The link will not be followed.
Obtain properties for the link represented by path
, asynchronously.
The link will not be followed.
Blocking version of {@link FileSystem#lprops}
Create the directory represented by path
, asynchronously.
The operation will fail if the directory already exists.
Create the directory represented by path
, asynchronously.
The operation will fail if the directory already exists.
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.
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.
Blocking version of {@link FileSystem#mkdir}
Blocking version of {@link FileSystem#mkdir}
Create the directory represented by path
and any non existent parents, asynchronously.
The operation will fail if the path
already exists but is not a directory.
Create the directory represented by path
and any non existent parents, asynchronously.
The operation will fail if the path
already exists but is not a directory.
Create the directory represented by path
and any non existent parents, 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 path
already exists but is not a directory.
Create the directory represented by path
and any non existent parents, 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 path
already exists but is not a directory.
Blocking version of {@link FileSystem#mkdirs}
Blocking version of {@link FileSystem#mkdirs}
Move a file from the path from
to path to
, asynchronously.
The move will fail if the destination already exists.
Move a file from the path from
to path to
, asynchronously.
The move will fail if the destination already exists.
Move a file from the path from
to path to
, asynchronously.
Move a file from the path from
to path to
, asynchronously.
Blocking version of {@link FileSystem#move}
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.
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.
Blocking version of {@link FileSystem#open}
Obtain properties for the file represented by path
, asynchronously.
If the file is a link, the link will be followed.
Obtain properties for the file represented by path
, asynchronously.
If the file is a link, the link will be followed.
Blocking version of {@link FileSystem#props}
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.
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.
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.
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.
Blocking version of {@link FileSystem#readDir}
Blocking version of {@link FileSystem#readDir}
Reads the entire file as represented by the path path
as a , asynchronously.
Do not use this method to read very large files or you risk running out of available RAM.
Reads the entire file as represented by the path path
as a , asynchronously.
Do not use this method to read very large files or you risk running out of available RAM.
Blocking version of {@link FileSystem#readFile}
Returns the path representing the file that the symbolic link specified by link
points to, asynchronously.
Returns the path representing the file that the symbolic link specified by link
points to, asynchronously.
Blocking version of {@link FileSystem#readSymlink}
Create a symbolic link on the file system from link
to existing
, asynchronously.
Create a symbolic link on the file system from link
to existing
, asynchronously.
Blocking version of {@link FileSystem#link}
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
.
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
.
Blocking version of {@link FileSystem#truncate}
Unlinks the link on the file system represented by the path link
, asynchronously.
Unlinks the link on the file system represented by the path link
, asynchronously.
Blocking version of {@link FileSystem#unlink}
Creates the file, and writes the specified Buffer data
to the file represented by the path path
,
asynchronously.
Creates the file, and writes the specified Buffer data
to the file represented by the path path
,
asynchronously.
Blocking version of {@link FileSystem#writeFile}
Generated using TypeDoc
Contains a broad set of operations for manipulating files on the file system.
A (potential) blocking and non blocking version of each operation is provided.
The non blocking versions take a handler which is called when the operation completes or an error occurs.
The blocking versions are named
xxxBlocking
and return the results, or throw exceptions directly. In many cases, depending on the operating system and file system some of the potentially blocking operations can return quickly, which is why we provide them, but it's highly recommended that you test how long they take to return in your particular application before using them on an event loop.Please consult the documentation for more information on file system support.