Class FileSystem
- All Implemented Interfaces:
MutinyDelegate
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.
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileSystem
(io.vertx.core.file.FileSystem delegate) FileSystem
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
Change the permissions on the file represented bypath
toperms
, asynchronously.chmodAndAwait
(String path, String perms) Blocking variant ofchmod(String,String)
.chmodAndForget
(String path, String perms) Variant ofchmod(String,String)
that ignores the result of the operation.chmodBlocking
(String path, String perms) io.smallrye.mutiny.Uni<Void>
chmodRecursive
(String path, String perms, String dirPerms) Change the permissions on the file represented bypath
toperms
, asynchronously.chmodRecursiveAndAwait
(String path, String perms, String dirPerms) Blocking variant ofchmodRecursive(String,String,String)
.chmodRecursiveAndForget
(String path, String perms, String dirPerms) Variant ofchmodRecursive(String,String,String)
that ignores the result of the operation.chmodRecursiveBlocking
(String path, String perms, String dirPerms) io.smallrye.mutiny.Uni<Void>
Change the ownership on the file represented bypath
touser
and {code group}, asynchronously.chownAndAwait
(String path, String user, String group) Blocking variant ofchown(String,String,String)
.chownAndForget
(String path, String user, String group) Variant ofchown(String,String,String)
that ignores the result of the operation.chownBlocking
(String path, String user, String group) io.smallrye.mutiny.Uni<Void>
Copy a file from the pathfrom
to pathto
, asynchronously.io.smallrye.mutiny.Uni<Void>
Copy a file from the pathfrom
to pathto
, asynchronously.copyAndAwait
(String from, String to) Blocking variant ofcopy(String,String)
.copyAndAwait
(String from, String to, io.vertx.core.file.CopyOptions options) Blocking variant ofcopy(String,String,CopyOptions)
.copyAndForget
(String from, String to) Variant ofcopy(String,String)
that ignores the result of the operation.copyAndForget
(String from, String to, io.vertx.core.file.CopyOptions options) Variant ofcopy(String,String,CopyOptions)
that ignores the result of the operation.copyBlocking
(String from, String to) io.smallrye.mutiny.Uni<Void>
copyRecursive
(String from, String to, boolean recursive) Copy a file from the pathfrom
to pathto
, asynchronously.copyRecursiveAndAwait
(String from, String to, boolean recursive) Blocking variant ofcopyRecursive(String,String,boolean)
.copyRecursiveAndForget
(String from, String to, boolean recursive) Variant ofcopyRecursive(String,String,boolean)
that ignores the result of the operation.copyRecursiveBlocking
(String from, String to, boolean recursive) io.smallrye.mutiny.Uni<Void>
createFile
(String path) Creates an empty file with the specifiedpath
, asynchronously.io.smallrye.mutiny.Uni<Void>
createFile
(String path, String perms) Creates an empty file with the specifiedpath
and permissionsperms
, asynchronously.createFileAndAwait
(String path) Blocking variant ofcreateFile(String)
.createFileAndAwait
(String path, String perms) Blocking variant ofcreateFile(String,String)
.createFileAndForget
(String path) Variant ofcreateFile(String)
that ignores the result of the operation.createFileAndForget
(String path, String perms) Variant ofcreateFile(String,String)
that ignores the result of the operation.createFileBlocking
(String path) createFileBlocking
(String path, String perms) io.smallrye.mutiny.Uni<String>
createTempDirectory
(String prefix) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.io.smallrye.mutiny.Uni<String>
createTempDirectory
(String prefix, String perms) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.io.smallrye.mutiny.Uni<String>
createTempDirectory
(String dir, String prefix, String perms) Creates a new directory in the directory provided by the pathpath
, using the given prefix to generate its name, asynchronously.createTempDirectoryAndAwait
(String prefix) Blocking variant ofcreateTempDirectory(String)
.createTempDirectoryAndAwait
(String prefix, String perms) Blocking variant ofcreateTempDirectory(String,String)
.createTempDirectoryAndAwait
(String dir, String prefix, String perms) Blocking variant ofcreateTempDirectory(String,String,String)
.createTempDirectoryAndForget
(String prefix) Variant ofcreateTempDirectory(String)
that ignores the result of the operation.createTempDirectoryAndForget
(String prefix, String perms) Variant ofcreateTempDirectory(String,String)
that ignores the result of the operation.createTempDirectoryAndForget
(String dir, String prefix, String perms) Variant ofcreateTempDirectory(String,String,String)
that ignores the result of the operation.createTempDirectoryBlocking
(String prefix) createTempDirectoryBlocking
(String prefix, String perms) createTempDirectoryBlocking
(String dir, String prefix, String perms) io.smallrye.mutiny.Uni<String>
createTempFile
(String prefix, String suffix) Creates a new file in the default temporary-file directory, using the given prefix and suffix to generate its name, asynchronously.io.smallrye.mutiny.Uni<String>
createTempFile
(String prefix, String suffix, String perms) Creates a new file in the directory provided by the pathdir
, using the given prefix and suffix to generate its name, asynchronously.io.smallrye.mutiny.Uni<String>
createTempFile
(String dir, String prefix, String suffix, String perms) Creates a new file in the directory provided by the pathdir
, using the given prefix and suffix to generate its name, asynchronously.createTempFileAndAwait
(String prefix, String suffix) Blocking variant ofcreateTempFile(String,String)
.createTempFileAndAwait
(String prefix, String suffix, String perms) Blocking variant ofcreateTempFile(String,String,String)
.createTempFileAndAwait
(String dir, String prefix, String suffix, String perms) Blocking variant ofcreateTempFile(String,String,String,String)
.createTempFileAndForget
(String prefix, String suffix) Variant ofcreateTempFile(String,String)
that ignores the result of the operation.createTempFileAndForget
(String prefix, String suffix, String perms) Variant ofcreateTempFile(String,String,String)
that ignores the result of the operation.createTempFileAndForget
(String dir, String prefix, String suffix, String perms) Variant ofcreateTempFile(String,String,String,String)
that ignores the result of the operation.createTempFileBlocking
(String prefix, String suffix) createTempFileBlocking
(String prefix, String suffix, String perms) createTempFileBlocking
(String dir, String prefix, String suffix, String perms) io.smallrye.mutiny.Uni<Void>
Deletes the file represented by the specifiedpath
, asynchronously.deleteAndAwait
(String path) Blocking variant ofdelete(String)
.deleteAndForget
(String path) Variant ofdelete(String)
that ignores the result of the operation.deleteBlocking
(String path) io.smallrye.mutiny.Uni<Void>
deleteRecursive
(String path, boolean recursive) Deletes the file represented by the specifiedpath
, asynchronously.deleteRecursiveAndAwait
(String path, boolean recursive) Blocking variant ofdeleteRecursive(String,boolean)
.deleteRecursiveAndForget
(String path, boolean recursive) Variant ofdeleteRecursive(String,boolean)
that ignores the result of the operation.deleteRecursiveBlocking
(String path, boolean recursive) boolean
io.smallrye.mutiny.Uni<Boolean>
Determines whether the file as specified by the pathpath
exists, asynchronously.existsAndAwait
(String path) Blocking variant ofexists(String)
.existsAndForget
(String path) Variant ofexists(String)
that ignores the result of the operation.boolean
existsBlocking
(String path) io.smallrye.mutiny.Uni<FileSystemProps>
Returns properties of the file-system being used by the specifiedpath
, asynchronously.fsPropsAndAwait
(String path) Blocking variant offsProps(String)
.fsPropsAndForget
(String path) Variant offsProps(String)
that ignores the result of the operation.fsPropsBlocking
(String path) io.vertx.core.file.FileSystem
int
hashCode()
io.smallrye.mutiny.Uni<Void>
Create a hard link on the file system fromlink
toexisting
, asynchronously.linkAndAwait
(String link, String existing) Blocking variant oflink(String,String)
.linkAndForget
(String link, String existing) Variant oflink(String,String)
that ignores the result of the operation.linkBlocking
(String link, String existing) io.smallrye.mutiny.Uni<FileProps>
Obtain properties for the link represented bypath
, asynchronously.lpropsAndAwait
(String path) Blocking variant oflprops(String)
.lpropsAndForget
(String path) Variant oflprops(String)
that ignores the result of the operation.lpropsBlocking
(String path) io.smallrye.mutiny.Uni<Void>
Create the directory represented bypath
, asynchronously.io.smallrye.mutiny.Uni<Void>
Create the directory represented bypath
, asynchronously.mkdirAndAwait
(String path) Blocking variant ofmkdir(String)
.mkdirAndAwait
(String path, String perms) Blocking variant ofmkdir(String,String)
.mkdirAndForget
(String path) Variant ofmkdir(String)
that ignores the result of the operation.mkdirAndForget
(String path, String perms) Variant ofmkdir(String,String)
that ignores the result of the operation.mkdirBlocking
(String path) mkdirBlocking
(String path, String perms) io.smallrye.mutiny.Uni<Void>
Create the directory represented bypath
and any non existent parents, asynchronously.io.smallrye.mutiny.Uni<Void>
Create the directory represented bypath
and any non existent parents, asynchronously.mkdirsAndAwait
(String path) Blocking variant ofmkdirs(String)
.mkdirsAndAwait
(String path, String perms) Blocking variant ofmkdirs(String,String)
.mkdirsAndForget
(String path) Variant ofmkdirs(String)
that ignores the result of the operation.mkdirsAndForget
(String path, String perms) Variant ofmkdirs(String,String)
that ignores the result of the operation.mkdirsBlocking
(String path) mkdirsBlocking
(String path, String perms) io.smallrye.mutiny.Uni<Void>
Move a file from the pathfrom
to pathto
, asynchronously.io.smallrye.mutiny.Uni<Void>
Move a file from the pathfrom
to pathto
, asynchronously.moveAndAwait
(String from, String to) Blocking variant ofmove(String,String)
.moveAndAwait
(String from, String to, io.vertx.core.file.CopyOptions options) Blocking variant ofmove(String,String,CopyOptions)
.moveAndForget
(String from, String to) Variant ofmove(String,String)
that ignores the result of the operation.moveAndForget
(String from, String to, io.vertx.core.file.CopyOptions options) Variant ofmove(String,String,CopyOptions)
that ignores the result of the operation.moveBlocking
(String from, String to) static FileSystem
newInstance
(io.vertx.core.file.FileSystem arg) io.smallrye.mutiny.Uni<AsyncFile>
Open the file represented bypath
, asynchronously.openAndAwait
(String path, io.vertx.core.file.OpenOptions options) Blocking variant ofopen(String,OpenOptions)
.openAndForget
(String path, io.vertx.core.file.OpenOptions options) Variant ofopen(String,OpenOptions)
that ignores the result of the operation.openBlocking
(String path, io.vertx.core.file.OpenOptions options) io.smallrye.mutiny.Uni<FileProps>
Obtain properties for the file represented bypath
, asynchronously.propsAndAwait
(String path) Blocking variant ofprops(String)
.propsAndForget
(String path) Variant ofprops(String)
that ignores the result of the operation.propsBlocking
(String path) Read the contents of the directory specified bypath
, asynchronously.Read the contents of the directory specified bypath
, asynchronously.readDirAndAwait
(String path) Blocking variant ofreadDir(String)
.readDirAndAwait
(String path, String filter) Blocking variant ofreadDir(String,String)
.readDirAndForget
(String path) Variant ofreadDir(String)
that ignores the result of the operation.readDirAndForget
(String path, String filter) Variant ofreadDir(String,String)
that ignores the result of the operation.readDirBlocking
(String path) readDirBlocking
(String path, String filter) io.smallrye.mutiny.Uni<Buffer>
Reads the entire file as represented by the pathpath
as a , asynchronously.readFileAndAwait
(String path) Blocking variant ofreadFile(String)
.readFileAndForget
(String path) Variant ofreadFile(String)
that ignores the result of the operation.readFileBlocking
(String path) io.smallrye.mutiny.Uni<String>
readSymlink
(String link) Returns the path representing the file that the symbolic link specified bylink
points to, asynchronously.readSymlinkAndAwait
(String link) Blocking variant ofreadSymlink(String)
.readSymlinkAndForget
(String link) Variant ofreadSymlink(String)
that ignores the result of the operation.readSymlinkBlocking
(String link) io.smallrye.mutiny.Uni<Void>
Create a symbolic link on the file system fromlink
toexisting
, asynchronously.symlinkAndAwait
(String link, String existing) Blocking variant ofsymlink(String,String)
.symlinkAndForget
(String link, String existing) Variant ofsymlink(String,String)
that ignores the result of the operation.symlinkBlocking
(String link, String existing) toString()
io.smallrye.mutiny.Uni<Void>
Truncate the file represented bypath
to lengthlen
in bytes, asynchronously.truncateAndAwait
(String path, long len) Blocking variant oftruncate(String,long)
.truncateAndForget
(String path, long len) Variant oftruncate(String,long)
that ignores the result of the operation.truncateBlocking
(String path, long len) io.smallrye.mutiny.Uni<Void>
Unlinks the link on the file system represented by the pathlink
, asynchronously.unlinkAndAwait
(String link) Blocking variant ofunlink(String)
.unlinkAndForget
(String link) Variant ofunlink(String)
that ignores the result of the operation.unlinkBlocking
(String link) io.smallrye.mutiny.Uni<Void>
Creates the file, and writes the specifiedBuffer data
to the file represented by the pathpath
, asynchronously.writeFileAndAwait
(String path, Buffer data) Blocking variant ofwriteFile(String,io.vertx.mutiny.core.buffer.Buffer)
.writeFileAndForget
(String path, Buffer data) Variant ofwriteFile(String,io.vertx.mutiny.core.buffer.Buffer)
that ignores the result of the operation.writeFileBlocking
(String path, Buffer data)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
FileSystem
public FileSystem(io.vertx.core.file.FileSystem delegate) -
FileSystem
-
-
Method Details
-
getDelegate
public io.vertx.core.file.FileSystem getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
copy
Copy a file from the pathfrom
to pathto
, asynchronously.The copy will fail if the destination already exists.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
from
- the path to copy fromto
- the path to copy to- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
copyAndAwait
Blocking variant ofcopy(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
from
- the path to copy fromto
- the path to copy to- Returns:
- the Void instance produced by the operation.
-
copyAndForget
Variant ofcopy(String,String)
that ignores the result of the operation.This method subscribes on the result of
copy(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcopy(String,String)
but you don't need to compose it with other operations.- Parameters:
from
- the path to copy fromto
- the path to copy to- Returns:
- the instance of FileSystem to chain method calls.
-
copy
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> copy(String from, String to, io.vertx.core.file.CopyOptions options) Copy a file from the pathfrom
to pathto
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
from
- the path to copy fromto
- the path to copy tooptions
- options describing how the file should be copied- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
copyAndAwait
Blocking variant ofcopy(String,String,CopyOptions)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
from
- the path to copy fromto
- the path to copy tooptions
- options describing how the file should be copied- Returns:
- the Void instance produced by the operation.
-
copyAndForget
Variant ofcopy(String,String,CopyOptions)
that ignores the result of the operation.This method subscribes on the result of
copy(String,String,CopyOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcopy(String,String,CopyOptions)
but you don't need to compose it with other operations.- Parameters:
from
- the path to copy fromto
- the path to copy tooptions
- options describing how the file should be copied- Returns:
- the instance of FileSystem to chain method calls.
-
copyBlocking
- Parameters:
from
-to
-- Returns:
- the instance of FileSystem to chain method calls.
-
copyRecursive
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> copyRecursive(String from, String to, boolean recursive) Copy a file from the pathfrom
to pathto
, asynchronously.If
recursive
istrue
andfrom
represents a directory, then the directory and its contents will be copied recursively to the destinationto
.The copy will fail if the destination if the destination already exists.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
from
- the path to copy fromto
- the path to copy torecursive
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
copyRecursiveAndAwait
Blocking variant ofcopyRecursive(String,String,boolean)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
from
- the path to copy fromto
- the path to copy torecursive
-- Returns:
- the Void instance produced by the operation.
-
copyRecursiveAndForget
Variant ofcopyRecursive(String,String,boolean)
that ignores the result of the operation.This method subscribes on the result of
copyRecursive(String,String,boolean)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcopyRecursive(String,String,boolean)
but you don't need to compose it with other operations.- Parameters:
from
- the path to copy fromto
- the path to copy torecursive
-- Returns:
- the instance of FileSystem to chain method calls.
-
copyRecursiveBlocking
- Parameters:
from
-to
-recursive
-- Returns:
- the instance of FileSystem to chain method calls.
-
move
Move a file from the pathfrom
to pathto
, asynchronously.The move will fail if the destination already exists.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
from
- the path to copy fromto
- the path to copy to- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
moveAndAwait
Blocking variant ofmove(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
from
- the path to copy fromto
- the path to copy to- Returns:
- the Void instance produced by the operation.
-
moveAndForget
Variant ofmove(String,String)
that ignores the result of the operation.This method subscribes on the result of
move(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frommove(String,String)
but you don't need to compose it with other operations.- Parameters:
from
- the path to copy fromto
- the path to copy to- Returns:
- the instance of FileSystem to chain method calls.
-
move
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> move(String from, String to, io.vertx.core.file.CopyOptions options) Move a file from the pathfrom
to pathto
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
from
- the path to copy fromto
- the path to copy tooptions
- options describing how the file should be copied- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
moveAndAwait
Blocking variant ofmove(String,String,CopyOptions)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
from
- the path to copy fromto
- the path to copy tooptions
- options describing how the file should be copied- Returns:
- the Void instance produced by the operation.
-
moveAndForget
Variant ofmove(String,String,CopyOptions)
that ignores the result of the operation.This method subscribes on the result of
move(String,String,CopyOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frommove(String,String,CopyOptions)
but you don't need to compose it with other operations.- Parameters:
from
- the path to copy fromto
- the path to copy tooptions
- options describing how the file should be copied- Returns:
- the instance of FileSystem to chain method calls.
-
moveBlocking
- Parameters:
from
-to
-- Returns:
- the instance of FileSystem to chain method calls.
-
truncate
Truncate the file represented bypath
to lengthlen
in bytes, asynchronously.The operation will fail if the file does not exist or
len
is less thanzero
.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- the path to the filelen
- the length to truncate it to- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
truncateAndAwait
Blocking variant oftruncate(String,long)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- the path to the filelen
- the length to truncate it to- Returns:
- the Void instance produced by the operation.
-
truncateAndForget
Variant oftruncate(String,long)
that ignores the result of the operation.This method subscribes on the result of
truncate(String,long)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromtruncate(String,long)
but you don't need to compose it with other operations.- Parameters:
path
- the path to the filelen
- the length to truncate it to- Returns:
- the instance of FileSystem to chain method calls.
-
truncateBlocking
- Parameters:
path
-len
-- Returns:
- the instance of FileSystem to chain method calls.
-
chmod
Change the permissions on the file represented bypath
toperms
, asynchronously.The permission String takes the form rwxr-x--- as specified here.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- the path to the fileperms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
chmodAndAwait
Blocking variant ofchmod(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- the path to the fileperms
- the permissions string- Returns:
- the Void instance produced by the operation.
-
chmodAndForget
Variant ofchmod(String,String)
that ignores the result of the operation.This method subscribes on the result of
chmod(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromchmod(String,String)
but you don't need to compose it with other operations.- Parameters:
path
- the path to the fileperms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
chmodBlocking
- Parameters:
path
-perms
-- Returns:
- the instance of FileSystem to chain method calls.
-
chmodRecursive
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> chmodRecursive(String path, String perms, String dirPerms) Change the permissions on the file represented bypath
toperms
, 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 toperms
.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- the path to the fileperms
- the permissions stringdirPerms
- the directory permissions- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
chmodRecursiveAndAwait
Blocking variant ofchmodRecursive(String,String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- the path to the fileperms
- the permissions stringdirPerms
- the directory permissions- Returns:
- the Void instance produced by the operation.
-
chmodRecursiveAndForget
Variant ofchmodRecursive(String,String,String)
that ignores the result of the operation.This method subscribes on the result of
chmodRecursive(String,String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromchmodRecursive(String,String,String)
but you don't need to compose it with other operations.- Parameters:
path
- the path to the fileperms
- the permissions stringdirPerms
- the directory permissions- Returns:
- the instance of FileSystem to chain method calls.
-
chmodRecursiveBlocking
- Parameters:
path
-perms
-dirPerms
-- Returns:
- the instance of FileSystem to chain method calls.
-
chown
Change the ownership on the file represented bypath
touser
and {code group}, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- the path to the fileuser
- the user name,null
will not change the user namegroup
- the user group,null
will not change the user group name- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
chownAndAwait
Blocking variant ofchown(String,String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- the path to the fileuser
- the user name,null
will not change the user namegroup
- the user group,null
will not change the user group name- Returns:
- the Void instance produced by the operation.
-
chownAndForget
Variant ofchown(String,String,String)
that ignores the result of the operation.This method subscribes on the result of
chown(String,String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromchown(String,String,String)
but you don't need to compose it with other operations.- Parameters:
path
- the path to the fileuser
- the user name,null
will not change the user namegroup
- the user group,null
will not change the user group name- Returns:
- the instance of FileSystem to chain method calls.
-
chownBlocking
- Parameters:
path
-user
-group
-- Returns:
- the instance of FileSystem to chain method calls.
-
props
Obtain properties for the file represented bypath
, asynchronously.If the file is a link, the link will be followed.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- the path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
propsAndAwait
Blocking variant ofprops(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- the path to the file- Returns:
- the FileProps instance produced by the operation.
-
propsAndForget
Variant ofprops(String)
that ignores the result of the operation.This method subscribes on the result of
props(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromprops(String)
but you don't need to compose it with other operations.- Parameters:
path
- the path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
propsBlocking
- Parameters:
path
-- Returns:
-
lprops
Obtain properties for the link represented bypath
, asynchronously.The link will not be followed.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- the path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
lpropsAndAwait
Blocking variant oflprops(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- the path to the file- Returns:
- the FileProps instance produced by the operation.
-
lpropsAndForget
Variant oflprops(String)
that ignores the result of the operation.This method subscribes on the result of
lprops(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlprops(String)
but you don't need to compose it with other operations.- Parameters:
path
- the path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
lpropsBlocking
- Parameters:
path
-- Returns:
-
link
Create a hard link on the file system fromlink
toexisting
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
link
- the linkexisting
- the link destination- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
linkAndAwait
Blocking variant oflink(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
link
- the linkexisting
- the link destination- Returns:
- the Void instance produced by the operation.
-
linkAndForget
Variant oflink(String,String)
that ignores the result of the operation.This method subscribes on the result of
link(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlink(String,String)
but you don't need to compose it with other operations.- Parameters:
link
- the linkexisting
- the link destination- Returns:
- the instance of FileSystem to chain method calls.
-
linkBlocking
- Parameters:
link
-existing
-- Returns:
- the instance of FileSystem to chain method calls.
-
symlink
Create a symbolic link on the file system fromlink
toexisting
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
link
- the linkexisting
- the link destination- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
symlinkAndAwait
Blocking variant ofsymlink(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
link
- the linkexisting
- the link destination- Returns:
- the Void instance produced by the operation.
-
symlinkAndForget
Variant ofsymlink(String,String)
that ignores the result of the operation.This method subscribes on the result of
symlink(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromsymlink(String,String)
but you don't need to compose it with other operations.- Parameters:
link
- the linkexisting
- the link destination- Returns:
- the instance of FileSystem to chain method calls.
-
symlinkBlocking
- Parameters:
link
-existing
-- Returns:
- the instance of FileSystem to chain method calls.
-
unlink
Unlinks the link on the file system represented by the pathlink
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
link
- the link- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
unlinkAndAwait
Blocking variant ofunlink(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
link
- the link- Returns:
- the Void instance produced by the operation.
-
unlinkAndForget
Variant ofunlink(String)
that ignores the result of the operation.This method subscribes on the result of
unlink(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromunlink(String)
but you don't need to compose it with other operations.- Parameters:
link
- the link- Returns:
- the instance of FileSystem to chain method calls.
-
unlinkBlocking
- Parameters:
link
-- Returns:
- the instance of FileSystem to chain method calls.
-
readSymlink
Returns the path representing the file that the symbolic link specified bylink
points to, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
link
- the link- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
readSymlinkAndAwait
Blocking variant ofreadSymlink(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
link
- the link- Returns:
- the String instance produced by the operation.
-
readSymlinkAndForget
Variant ofreadSymlink(String)
that ignores the result of the operation.This method subscribes on the result of
readSymlink(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromreadSymlink(String)
but you don't need to compose it with other operations.- Parameters:
link
- the link- Returns:
- the instance of FileSystem to chain method calls.
-
readSymlinkBlocking
- Parameters:
link
-- Returns:
-
delete
Deletes the file represented by the specifiedpath
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
deleteAndAwait
Blocking variant ofdelete(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the Void instance produced by the operation.
-
deleteAndForget
Variant ofdelete(String)
that ignores the result of the operation.This method subscribes on the result of
delete(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdelete(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
deleteBlocking
- Parameters:
path
-- Returns:
- the instance of FileSystem to chain method calls.
-
deleteRecursive
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> deleteRecursive(String path, boolean recursive) Deletes the file represented by the specifiedpath
, asynchronously.If the path represents a directory and
recursive = true
then the directory and its contents will be deleted recursively.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the filerecursive
- delete recursively?- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
deleteRecursiveAndAwait
Blocking variant ofdeleteRecursive(String,boolean)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the filerecursive
- delete recursively?- Returns:
- the Void instance produced by the operation.
-
deleteRecursiveAndForget
Variant ofdeleteRecursive(String,boolean)
that ignores the result of the operation.This method subscribes on the result of
deleteRecursive(String,boolean)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromdeleteRecursive(String,boolean)
but you don't need to compose it with other operations.- Parameters:
path
- path to the filerecursive
- delete recursively?- Returns:
- the instance of FileSystem to chain method calls.
-
deleteRecursiveBlocking
- Parameters:
path
-recursive
-- Returns:
- the instance of FileSystem to chain method calls.
-
mkdir
Create the directory represented bypath
, asynchronously.The operation will fail if the directory already exists.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
mkdirAndAwait
Blocking variant ofmkdir(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the Void instance produced by the operation.
-
mkdirAndForget
Variant ofmkdir(String)
that ignores the result of the operation.This method subscribes on the result of
mkdir(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frommkdir(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
mkdirBlocking
- Parameters:
path
-- Returns:
- the instance of FileSystem to chain method calls.
-
mkdir
Create the directory represented bypath
, 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.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
mkdirAndAwait
Blocking variant ofmkdir(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the Void instance produced by the operation.
-
mkdirAndForget
Variant ofmkdir(String,String)
that ignores the result of the operation.This method subscribes on the result of
mkdir(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frommkdir(String,String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
mkdirBlocking
- Parameters:
path
-perms
-- Returns:
- the instance of FileSystem to chain method calls.
-
mkdirs
Create the directory represented bypath
and any non existent parents, asynchronously.The operation will fail if the
path
already exists but is not a directory.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
mkdirsAndAwait
Blocking variant ofmkdirs(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the Void instance produced by the operation.
-
mkdirsAndForget
Variant ofmkdirs(String)
that ignores the result of the operation.This method subscribes on the result of
mkdirs(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frommkdirs(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
mkdirsBlocking
- Parameters:
path
-- Returns:
- the instance of FileSystem to chain method calls.
-
mkdirs
Create the directory represented bypath
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.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
mkdirsAndAwait
Blocking variant ofmkdirs(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the Void instance produced by the operation.
-
mkdirsAndForget
Variant ofmkdirs(String,String)
that ignores the result of the operation.This method subscribes on the result of
mkdirs(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frommkdirs(String,String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
mkdirsBlocking
- Parameters:
path
-perms
-- Returns:
- the instance of FileSystem to chain method calls.
-
readDir
Read the contents of the directory specified bypath
, asynchronously.The result is an array of String representing the paths of the files inside the directory.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
readDirAndAwait
Blocking variant ofreadDir(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the List
instance produced by the operation.
-
readDirAndForget
Variant ofreadDir(String)
that ignores the result of the operation.This method subscribes on the result of
readDir(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromreadDir(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
readDirBlocking
- Parameters:
path
-- Returns:
-
readDir
Read the contents of the directory specified bypath
, asynchronously.The parameter
filter
is a regular expression. Iffilter
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.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the directoryfilter
- the filter expression- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
readDirAndAwait
Blocking variant ofreadDir(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the directoryfilter
- the filter expression- Returns:
- the List
instance produced by the operation.
-
readDirAndForget
Variant ofreadDir(String,String)
that ignores the result of the operation.This method subscribes on the result of
readDir(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromreadDir(String,String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the directoryfilter
- the filter expression- Returns:
- the instance of FileSystem to chain method calls.
-
readDirBlocking
- Parameters:
path
-filter
-- Returns:
-
readFile
Reads the entire file as represented by the pathpath
as a , asynchronously.Do not use this method to read very large files or you risk running out of available RAM.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
readFileAndAwait
Blocking variant ofreadFile(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the Buffer instance produced by the operation.
-
readFileAndForget
Variant ofreadFile(String)
that ignores the result of the operation.This method subscribes on the result of
readFile(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromreadFile(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
readFileBlocking
- Parameters:
path
-- Returns:
-
writeFile
Creates the file, and writes the specifiedBuffer data
to the file represented by the pathpath
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the filedata
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
writeFileAndAwait
Blocking variant ofwriteFile(String,io.vertx.mutiny.core.buffer.Buffer)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the filedata
-- Returns:
- the Void instance produced by the operation.
-
writeFileAndForget
Variant ofwriteFile(String,io.vertx.mutiny.core.buffer.Buffer)
that ignores the result of the operation.This method subscribes on the result of
writeFile(String,io.vertx.mutiny.core.buffer.Buffer)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromwriteFile(String,io.vertx.mutiny.core.buffer.Buffer)
but you don't need to compose it with other operations.- Parameters:
path
- path to the filedata
-- Returns:
- the instance of FileSystem to chain method calls.
-
writeFileBlocking
- Parameters:
path
-data
-- Returns:
- the instance of FileSystem to chain method calls.
-
open
@CheckReturnValue public io.smallrye.mutiny.Uni<AsyncFile> open(String path, io.vertx.core.file.OpenOptions options) Open the file represented bypath
, asynchronously.The file is opened for both reading and writing. If the file does not already exist it will be created.
Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the fileoptions
- options describing how the file should be opened- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
openAndAwait
Blocking variant ofopen(String,OpenOptions)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the fileoptions
- options describing how the file should be opened- Returns:
- the AsyncFile instance produced by the operation.
-
openAndForget
Variant ofopen(String,OpenOptions)
that ignores the result of the operation.This method subscribes on the result of
open(String,OpenOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromopen(String,OpenOptions)
but you don't need to compose it with other operations.- Parameters:
path
- path to the fileoptions
- options describing how the file should be opened- Returns:
- the instance of FileSystem to chain method calls.
-
openBlocking
- Parameters:
path
-options
-- Returns:
-
createFile
Creates an empty file with the specifiedpath
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createFileAndAwait
Blocking variant ofcreateFile(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the Void instance produced by the operation.
-
createFileAndForget
Variant ofcreateFile(String)
that ignores the result of the operation.This method subscribes on the result of
createFile(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateFile(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
createFileBlocking
- Parameters:
path
-- Returns:
- the instance of FileSystem to chain method calls.
-
createFile
Creates an empty file with the specifiedpath
and permissionsperms
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createFileAndAwait
Blocking variant ofcreateFile(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the Void instance produced by the operation.
-
createFileAndForget
Variant ofcreateFile(String,String)
that ignores the result of the operation.This method subscribes on the result of
createFile(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateFile(String,String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the fileperms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
createFileBlocking
- Parameters:
path
-perms
-- Returns:
- the instance of FileSystem to chain method calls.
-
exists
Determines whether the file as specified by the pathpath
exists, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to the file- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
existsAndAwait
Blocking variant ofexists(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to the file- Returns:
- the Boolean instance produced by the operation.
-
existsAndForget
Variant ofexists(String)
that ignores the result of the operation.This method subscribes on the result of
exists(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromexists(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to the file- Returns:
- the instance of FileSystem to chain method calls.
-
existsBlocking
- Parameters:
path
-- Returns:
-
fsProps
Returns properties of the file-system being used by the specifiedpath
, asynchronously.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
path
- path to anywhere on the filesystem- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
fsPropsAndAwait
Blocking variant offsProps(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
path
- path to anywhere on the filesystem- Returns:
- the FileSystemProps instance produced by the operation.
-
fsPropsAndForget
Variant offsProps(String)
that ignores the result of the operation.This method subscribes on the result of
fsProps(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromfsProps(String)
but you don't need to compose it with other operations.- Parameters:
path
- path to anywhere on the filesystem- Returns:
- the instance of FileSystem to chain method calls.
-
fsPropsBlocking
- Parameters:
path
-- Returns:
-
createTempDirectory
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.ARuntime
, or theFile
mechanism may be used to delete the directory automatically.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTempDirectoryAndAwait
Blocking variant ofcreateTempDirectory(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
- Returns:
- the String instance produced by the operation.
-
createTempDirectoryAndForget
Variant ofcreateTempDirectory(String)
that ignores the result of the operation.This method subscribes on the result of
createTempDirectory(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTempDirectory(String)
but you don't need to compose it with other operations.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
- Returns:
- the instance of FileSystem to chain method calls.
-
createTempDirectoryBlocking
- Parameters:
prefix
-- Returns:
-
createTempDirectory
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createTempDirectory(String prefix, String perms) 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
The permission String takes the form rwxr-x--- as specified in here.perms
.As with the
File.createTempFile
methods, this method is only part of a temporary-file facility.ARuntime
, or theFile
mechanism may be used to delete the directory automatically.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
perms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTempDirectoryAndAwait
Blocking variant ofcreateTempDirectory(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
perms
- the permissions string- Returns:
- the String instance produced by the operation.
-
createTempDirectoryAndForget
Variant ofcreateTempDirectory(String,String)
that ignores the result of the operation.This method subscribes on the result of
createTempDirectory(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTempDirectory(String,String)
but you don't need to compose it with other operations.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
perms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
createTempDirectoryBlocking
- Parameters:
prefix
-perms
-- Returns:
-
createTempDirectory
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createTempDirectory(String dir, String prefix, String perms) Creates a new directory in the directory provided by the pathpath
, using the given prefix to generate its name, asynchronously.The new directory will be created with permissions as specified by
The permission String takes the form rwxr-x--- as specified in here.perms
.As with the
File.createTempFile
methods, this method is only part of a temporary-file facility.ARuntime
, or theFile
mechanism may be used to delete the directory automatically.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
dir
- the path to directory in which to create the directoryprefix
- the prefix string to be used in generating the directory's name; may benull
perms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTempDirectoryAndAwait
Blocking variant ofcreateTempDirectory(String,String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
dir
- the path to directory in which to create the directoryprefix
- the prefix string to be used in generating the directory's name; may benull
perms
- the permissions string- Returns:
- the String instance produced by the operation.
-
createTempDirectoryAndForget
Variant ofcreateTempDirectory(String,String,String)
that ignores the result of the operation.This method subscribes on the result of
createTempDirectory(String,String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTempDirectory(String,String,String)
but you don't need to compose it with other operations.- Parameters:
dir
- the path to directory in which to create the directoryprefix
- the prefix string to be used in generating the directory's name; may benull
perms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
createTempDirectoryBlocking
- Parameters:
dir
-prefix
-perms
-- Returns:
-
createTempFile
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createTempFile(String prefix, String suffix) 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.ARuntime
, or theFile
mechanism may be used to delete the directory automatically.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is used- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTempFileAndAwait
Blocking variant ofcreateTempFile(String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is used- Returns:
- the String instance produced by the operation.
-
createTempFileAndForget
Variant ofcreateTempFile(String,String)
that ignores the result of the operation.This method subscribes on the result of
createTempFile(String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTempFile(String,String)
but you don't need to compose it with other operations.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is used- Returns:
- the instance of FileSystem to chain method calls.
-
createTempFileBlocking
- Parameters:
prefix
-suffix
-- Returns:
-
createTempFile
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createTempFile(String prefix, String suffix, String perms) Creates a new file in the directory provided by the pathdir
, 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.ARuntime
, or theFile
mechanism may be used to delete the directory automatically.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is usedperms
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTempFileAndAwait
Blocking variant ofcreateTempFile(String,String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is usedperms
-- Returns:
- the String instance produced by the operation.
-
createTempFileAndForget
Variant ofcreateTempFile(String,String,String)
that ignores the result of the operation.This method subscribes on the result of
createTempFile(String,String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTempFile(String,String,String)
but you don't need to compose it with other operations.- Parameters:
prefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is usedperms
-- Returns:
- the instance of FileSystem to chain method calls.
-
createTempFileBlocking
- Parameters:
prefix
-suffix
-perms
-- Returns:
-
createTempFile
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createTempFile(String dir, String prefix, String suffix, String perms) Creates a new file in the directory provided by the pathdir
, using the given prefix and suffix to generate its name, asynchronously.The new directory will be created with permissions as specified by
The permission String takes the form rwxr-x--- as specified in here.perms
.As with the
File.createTempFile
methods, this method is only part of a temporary-file facility.ARuntime
, or theFile
mechanism may be used to delete the directory automatically.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
dir
- the path to directory in which to create the directoryprefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is usedperms
- the permissions string- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
createTempFileAndAwait
Blocking variant ofcreateTempFile(String,String,String,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
dir
- the path to directory in which to create the directoryprefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is usedperms
- the permissions string- Returns:
- the String instance produced by the operation.
-
createTempFileAndForget
Variant ofcreateTempFile(String,String,String,String)
that ignores the result of the operation.This method subscribes on the result of
createTempFile(String,String,String,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcreateTempFile(String,String,String,String)
but you don't need to compose it with other operations.- Parameters:
dir
- the path to directory in which to create the directoryprefix
- the prefix string to be used in generating the directory's name; may benull
suffix
- the suffix string to be used in generating the file's name; may benull
, in which case ".tmp
" is usedperms
- the permissions string- Returns:
- the instance of FileSystem to chain method calls.
-
createTempFileBlocking
- Parameters:
dir
-prefix
-suffix
-perms
-- Returns:
-
newInstance
-