Class FileSystem
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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 the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChange the permissions on the file represented bypathtoperms, asynchronously.chmodBlocking(String path, String perms) Blocking version of#chmod(String, String)chmodRecursive(String path, String perms, String dirPerms) Change the permissions on the file represented bypathtoperms, asynchronously.chmodRecursiveBlocking(String path, String perms, String dirPerms) Blocking version ofchmodRecursive(String, String, String)Change the ownership on the file represented bypathtouserand {code group}, asynchronously.chownBlocking(String path, String user, String group) Blocking version ofchown(String, String, String)Copy a file from the pathfromto pathto, asynchronously.copy(String from, String to, CopyOptions options) Copy a file from the pathfromto pathto, asynchronously.copyBlocking(String from, String to) Blocking version ofcopy(String, String)copyRecursive(String from, String to, boolean recursive) Copy a file from the pathfromto pathto, asynchronously.copyRecursiveBlocking(String from, String to, boolean recursive) Blocking version ofcopyRecursive(String, String, boolean)createFile(String path) Creates an empty file with the specifiedpath, asynchronously.createFile(String path, String perms) Creates an empty file with the specifiedpathand permissionsperms, asynchronously.createFileBlocking(String path) Blocking version ofcreateFile(String)createFileBlocking(String path, String perms) Blocking version ofcreateFile(String)createTempDirectory(String prefix) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.createTempDirectory(String prefix, String perms) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.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.createTempDirectoryBlocking(String prefix) Blocking version ofcreateTempDirectory(String)createTempDirectoryBlocking(String prefix, String perms) Blocking version ofcreateTempDirectory(String)createTempDirectoryBlocking(String dir, String prefix, String perms) Blocking version ofcreateTempDirectory(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.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.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.createTempFileBlocking(String prefix, String suffix) Blocking version ofcreateTempFile(String, String)createTempFileBlocking(String prefix, String suffix, String perms) Blocking version ofcreateTempFile(String, String)createTempFileBlocking(String dir, String prefix, String suffix, String perms) Blocking version ofcreateTempFile(String, String)Deletes the file represented by the specifiedpath, asynchronously.deleteBlocking(String path) Blocking version ofdelete(String)deleteRecursive(String path) Deletes the file represented by the specifiedpath, asynchronously.Blocking version ofdeleteRecursive(String)booleanDetermines whether the file as specified by the pathpathexists, asynchronously.booleanexistsBlocking(String path) Blocking version ofexists(String)Returns properties of the file-system being used by the specifiedpath, asynchronously.fsPropsBlocking(String path) Blocking version offsProps(String)inthashCode()Create a hard link on the file system fromlinktoexisting, asynchronously.linkBlocking(String link, String existing) Blocking version oflink(String, String)Obtain properties for the link represented bypath, asynchronously.lpropsBlocking(String path) Blocking version oflprops(String)Create the directory represented bypath, asynchronously.Create the directory represented bypath, asynchronously.mkdirBlocking(String path) Blocking version ofmkdir(String)mkdirBlocking(String path, String perms) Blocking version ofmkdir(String)Create the directory represented bypathand any non existent parents, asynchronously.Create the directory represented bypathand any non existent parents, asynchronously.mkdirsBlocking(String path) Blocking version ofmkdirs(String)mkdirsBlocking(String path, String perms) Blocking version ofmkdirs(String)Move a file from the pathfromto pathto, asynchronously.move(String from, String to, CopyOptions options) Move a file from the pathfromto pathto, asynchronously.moveBlocking(String from, String to) Blocking version ofmove(String, String)static FileSystemnewInstance(FileSystem arg) open(String path, OpenOptions options) Open the file represented bypath, asynchronously.openBlocking(String path, OpenOptions options) Blocking version ofopen(String, OpenOptions)Obtain properties for the file represented bypath, asynchronously.propsBlocking(String path) Blocking version ofprops(String)Read the contents of the directory specified bypath, asynchronously.Read the contents of the directory specified bypath, asynchronously.readDirBlocking(String path) Blocking version ofreadDir(String)readDirBlocking(String path, String filter) Blocking version ofreadDir(String)Reads the entire file as represented by the pathpathas a , asynchronously.readFileBlocking(String path) Blocking version ofreadFile(String)readSymlink(String link) Returns the path representing the file that the symbolic link specified bylinkpoints to, asynchronously.readSymlinkBlocking(String link) Blocking version ofreadSymlink(String)Change the permissions on the file represented bypathtoperms, asynchronously.rxChmodRecursive(String path, String perms, String dirPerms) Change the permissions on the file represented bypathtoperms, asynchronously.Change the ownership on the file represented bypathtouserand {code group}, asynchronously.Copy a file from the pathfromto pathto, asynchronously.rxCopy(String from, String to, CopyOptions options) Copy a file from the pathfromto pathto, asynchronously.rxCopyRecursive(String from, String to, boolean recursive) Copy a file from the pathfromto pathto, asynchronously.rxCreateFile(String path) Creates an empty file with the specifiedpath, asynchronously.rxCreateFile(String path, String perms) Creates an empty file with the specifiedpathand permissionsperms, asynchronously.rxCreateTempDirectory(String prefix) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.rxCreateTempDirectory(String prefix, String perms) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.rxCreateTempDirectory(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.rxCreateTempFile(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.rxCreateTempFile(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.rxCreateTempFile(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.Deletes the file represented by the specifiedpath, asynchronously.rxDeleteRecursive(String path) Deletes the file represented by the specifiedpath, asynchronously.Determines whether the file as specified by the pathpathexists, asynchronously.Returns properties of the file-system being used by the specifiedpath, asynchronously.Create a hard link on the file system fromlinktoexisting, asynchronously.Obtain properties for the link represented bypath, asynchronously.Create the directory represented bypath, asynchronously.Create the directory represented bypath, asynchronously.Create the directory represented bypathand any non existent parents, asynchronously.Create the directory represented bypathand any non existent parents, asynchronously.Move a file from the pathfromto pathto, asynchronously.rxMove(String from, String to, CopyOptions options) Move a file from the pathfromto pathto, asynchronously.rxOpen(String path, OpenOptions options) Open the file represented bypath, asynchronously.Obtain properties for the file represented bypath, asynchronously.Read the contents of the directory specified bypath, asynchronously.Read the contents of the directory specified bypath, asynchronously.rxReadFile(String path) Reads the entire file as represented by the pathpathas a , asynchronously.rxReadSymlink(String link) Returns the path representing the file that the symbolic link specified bylinkpoints to, asynchronously.Create a symbolic link on the file system fromlinktoexisting, asynchronously.rxTruncate(String path, long len) Truncate the file represented bypathto lengthlenin bytes, asynchronously.Unlinks the link on the file system represented by the pathlink, asynchronously.rxWriteFile(String path, Buffer data) Creates the file, and writes the specifiedBuffer datato the file represented by the pathpath, asynchronously.Create a symbolic link on the file system fromlinktoexisting, asynchronously.symlinkBlocking(String link, String existing) Blocking version oflink(String, String)toString()Truncate the file represented bypathto lengthlenin bytes, asynchronously.truncateBlocking(String path, long len) Blocking version oftruncate(String, long)Unlinks the link on the file system represented by the pathlink, asynchronously.unlinkBlocking(String link) Blocking version ofunlink(String)Creates the file, and writes the specifiedBuffer datato the file represented by the pathpath, asynchronously.writeFileBlocking(String path, Buffer data) Blocking version ofwriteFile(String, Buffer)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
FileSystem
-
FileSystem
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
copy
Copy a file from the pathfromto pathto, asynchronously.The copy will fail if the destination already exists.
- Parameters:
from- the path to copy fromto- the path to copy to- Returns:
- a future notified on completion
-
rxCopy
Copy a file from the pathfromto pathto, asynchronously.The copy will fail if the destination already exists.
- Parameters:
from- the path to copy fromto- the path to copy to- Returns:
- a future notified on completion
-
copy
Copy a file from the pathfromto pathto, asynchronously.- Parameters:
from- the path to copy fromto- the path to copy tooptions- options describing how the file should be copied- Returns:
- a future notified on completion
-
rxCopy
Copy a file from the pathfromto pathto, asynchronously.- Parameters:
from- the path to copy fromto- the path to copy tooptions- options describing how the file should be copied- Returns:
- a future notified on completion
-
copyBlocking
Blocking version ofcopy(String, String)- Parameters:
from-to-- Returns:
-
copyRecursive
Copy a file from the pathfromto pathto, asynchronously.If
recursiveistrueandfromrepresents 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.
- Parameters:
from- the path to copy fromto- the path to copy torecursive-- Returns:
- a future notified on completion
-
rxCopyRecursive
Copy a file from the pathfromto pathto, asynchronously.If
recursiveistrueandfromrepresents 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.
- Parameters:
from- the path to copy fromto- the path to copy torecursive-- Returns:
- a future notified on completion
-
copyRecursiveBlocking
Blocking version ofcopyRecursive(String, String, boolean)- Parameters:
from-to-recursive-- Returns:
-
move
Move a file from the pathfromto pathto, asynchronously.The move will fail if the destination already exists.
- Parameters:
from- the path to copy fromto- the path to copy to- Returns:
- a future notified on completion
-
rxMove
Move a file from the pathfromto pathto, asynchronously.The move will fail if the destination already exists.
- Parameters:
from- the path to copy fromto- the path to copy to- Returns:
- a future notified on completion
-
move
Move a file from the pathfromto pathto, asynchronously.- Parameters:
from- the path to copy fromto- the path to copy tooptions- options describing how the file should be copied- Returns:
- a future notified on completion
-
rxMove
Move a file from the pathfromto pathto, asynchronously.- Parameters:
from- the path to copy fromto- the path to copy tooptions- options describing how the file should be copied- Returns:
- a future notified on completion
-
moveBlocking
Blocking version ofmove(String, String)- Parameters:
from-to-- Returns:
-
truncate
Truncate the file represented bypathto lengthlenin bytes, asynchronously.The operation will fail if the file does not exist or
lenis less thanzero.- Parameters:
path- the path to the filelen- the length to truncate it to- Returns:
- a future notified on completion
-
rxTruncate
Truncate the file represented bypathto lengthlenin bytes, asynchronously.The operation will fail if the file does not exist or
lenis less thanzero.- Parameters:
path- the path to the filelen- the length to truncate it to- Returns:
- a future notified on completion
-
truncateBlocking
Blocking version oftruncate(String, long)- Parameters:
path-len-- Returns:
-
chmod
Change the permissions on the file represented bypathtoperms, asynchronously.The permission String takes the form rwxr-x--- as specified here.
- Parameters:
path- the path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
rxChmod
Change the permissions on the file represented bypathtoperms, asynchronously.The permission String takes the form rwxr-x--- as specified here.
- Parameters:
path- the path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
chmodBlocking
Blocking version of#chmod(String, String)- Parameters:
path-perms-- Returns:
-
chmodRecursive
Change the permissions on the file represented bypathtoperms, 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.- Parameters:
path- the path to the fileperms- the permissions stringdirPerms- the directory permissions- Returns:
- a future notified on completion
-
rxChmodRecursive
Change the permissions on the file represented bypathtoperms, 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.- Parameters:
path- the path to the fileperms- the permissions stringdirPerms- the directory permissions- Returns:
- a future notified on completion
-
chmodRecursiveBlocking
Blocking version ofchmodRecursive(String, String, String)- Parameters:
path-perms-dirPerms-- Returns:
-
chown
Change the ownership on the file represented bypathtouserand {code group}, asynchronously.- Parameters:
path- the path to the fileuser- the user name,nullwill not change the user namegroup- the user group,nullwill not change the user group name- Returns:
- a future notified on completion
-
rxChown
Change the ownership on the file represented bypathtouserand {code group}, asynchronously.- Parameters:
path- the path to the fileuser- the user name,nullwill not change the user namegroup- the user group,nullwill not change the user group name- Returns:
- a future notified on completion
-
chownBlocking
Blocking version ofchown(String, String, String)- Parameters:
path-user-group-- Returns:
-
props
-
rxProps
-
propsBlocking
Blocking version ofprops(String)- Parameters:
path-- Returns:
-
lprops
-
rxLprops
-
lpropsBlocking
Blocking version oflprops(String)- Parameters:
path-- Returns:
-
link
Create a hard link on the file system fromlinktoexisting, asynchronously.- Parameters:
link- the linkexisting- the link destination- Returns:
- a future notified on completion
-
rxLink
Create a hard link on the file system fromlinktoexisting, asynchronously.- Parameters:
link- the linkexisting- the link destination- Returns:
- a future notified on completion
-
linkBlocking
Blocking version oflink(String, String)- Parameters:
link-existing-- Returns:
-
symlink
Create a symbolic link on the file system fromlinktoexisting, asynchronously.- Parameters:
link- the linkexisting- the link destination- Returns:
- a future notified on completion
-
rxSymlink
Create a symbolic link on the file system fromlinktoexisting, asynchronously.- Parameters:
link- the linkexisting- the link destination- Returns:
- a future notified on completion
-
symlinkBlocking
Blocking version oflink(String, String)- Parameters:
link-existing-- Returns:
-
unlink
Unlinks the link on the file system represented by the pathlink, asynchronously.- Parameters:
link- the link- Returns:
- a future notified on completion
-
rxUnlink
Unlinks the link on the file system represented by the pathlink, asynchronously.- Parameters:
link- the link- Returns:
- a future notified on completion
-
unlinkBlocking
Blocking version ofunlink(String)- Parameters:
link-- Returns:
-
readSymlink
-
rxReadSymlink
-
readSymlinkBlocking
Blocking version ofreadSymlink(String)- Parameters:
link-- Returns:
-
delete
Deletes the file represented by the specifiedpath, asynchronously.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
rxDelete
Deletes the file represented by the specifiedpath, asynchronously.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
deleteBlocking
Blocking version ofdelete(String)- Parameters:
path-- Returns:
-
deleteRecursive
Deletes the file represented by the specifiedpath, asynchronously.If the path represents a directory and
recursive = truethen the directory and its contents will be deleted recursively.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
rxDeleteRecursive
Deletes the file represented by the specifiedpath, asynchronously.If the path represents a directory and
recursive = truethen the directory and its contents will be deleted recursively.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
deleteRecursiveBlocking
Blocking version ofdeleteRecursive(String)- Parameters:
path-- Returns:
-
mkdir
Create the directory represented bypath, asynchronously.The operation will fail if the directory already exists.
- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
rxMkdir
Create the directory represented bypath, asynchronously.The operation will fail if the directory already exists.
- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
mkdirBlocking
Blocking version ofmkdir(String)- Parameters:
path-- Returns:
-
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.
- Parameters:
path- path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
rxMkdir
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.
- Parameters:
path- path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
mkdirBlocking
Blocking version ofmkdir(String)- Parameters:
path-perms-- Returns:
-
mkdirs
Create the directory represented bypathand any non existent parents, asynchronously.The operation will fail if the
pathalready exists but is not a directory.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
rxMkdirs
Create the directory represented bypathand any non existent parents, asynchronously.The operation will fail if the
pathalready exists but is not a directory.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
mkdirsBlocking
Blocking version ofmkdirs(String)- Parameters:
path-- Returns:
-
mkdirs
Create the directory represented bypathand 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
pathalready exists but is not a directory.- Parameters:
path- path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
rxMkdirs
Create the directory represented bypathand 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
pathalready exists but is not a directory.- Parameters:
path- path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
mkdirsBlocking
Blocking version ofmkdirs(String)- Parameters:
path-perms-- Returns:
-
readDir
-
rxReadDir
-
readDirBlocking
Blocking version ofreadDir(String)- Parameters:
path-- Returns:
-
readDir
Read the contents of the directory specified bypath, asynchronously.The parameter
filteris a regular expression. Iffilteris 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.
- Parameters:
path- path to the directoryfilter- the filter expression- Returns:
- a future notified on completion
-
rxReadDir
Read the contents of the directory specified bypath, asynchronously.The parameter
filteris a regular expression. Iffilteris 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.
- Parameters:
path- path to the directoryfilter- the filter expression- Returns:
- a future notified on completion
-
readDirBlocking
Blocking version ofreadDir(String)- Parameters:
path-filter-- Returns:
-
readFile
-
rxReadFile
-
readFileBlocking
Blocking version ofreadFile(String)- Parameters:
path-- Returns:
-
writeFile
Creates the file, and writes the specifiedBuffer datato the file represented by the pathpath, asynchronously.- Parameters:
path- path to the filedata-- Returns:
- a future notified on completion
-
rxWriteFile
Creates the file, and writes the specifiedBuffer datato the file represented by the pathpath, asynchronously.- Parameters:
path- path to the filedata-- Returns:
- a future notified on completion
-
writeFileBlocking
Blocking version ofwriteFile(String, Buffer)- Parameters:
path-data-- Returns:
-
open
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.
- Parameters:
path- path to the fileoptions- options describing how the file should be opened- Returns:
- a future notified on completion
-
rxOpen
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.
- Parameters:
path- path to the fileoptions- options describing how the file should be opened- Returns:
- a future notified on completion
-
openBlocking
Blocking version ofopen(String, OpenOptions)- Parameters:
path-options-- Returns:
-
createFile
Creates an empty file with the specifiedpath, asynchronously.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
rxCreateFile
Creates an empty file with the specifiedpath, asynchronously.- Parameters:
path- path to the file- Returns:
- a future notified on completion
-
createFileBlocking
Blocking version ofcreateFile(String)- Parameters:
path-- Returns:
-
createFile
Creates an empty file with the specifiedpathand permissionsperms, asynchronously.- Parameters:
path- path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
rxCreateFile
Creates an empty file with the specifiedpathand permissionsperms, asynchronously.- Parameters:
path- path to the fileperms- the permissions string- Returns:
- a future notified on completion
-
createFileBlocking
Blocking version ofcreateFile(String)- Parameters:
path-perms-- Returns:
-
exists
-
rxExists
-
existsBlocking
Blocking version ofexists(String)- Parameters:
path-- Returns:
-
fsProps
Returns properties of the file-system being used by the specifiedpath, asynchronously.- Parameters:
path- path to anywhere on the filesystem- Returns:
- a future notified on completion
-
rxFsProps
Returns properties of the file-system being used by the specifiedpath, asynchronously.- Parameters:
path- path to anywhere on the filesystem- Returns:
- a future notified on completion
-
fsPropsBlocking
Blocking version offsProps(String)- 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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benull- Returns:
- a future notified on completion
-
rxCreateTempDirectory
Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.As with the
File.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benull- Returns:
- a future notified on completion
-
createTempDirectoryBlocking
Blocking version ofcreateTempDirectory(String)- Parameters:
prefix-- Returns:
-
createTempDirectory
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benullperms- the permissions string- Returns:
- a future notified on completion
-
rxCreateTempDirectory
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benullperms- the permissions string- Returns:
- a future notified on completion
-
createTempDirectoryBlocking
Blocking version ofcreateTempDirectory(String)- Parameters:
prefix-perms-- Returns:
-
createTempDirectory
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- 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 benullperms- the permissions string- Returns:
- a future notified on completion
-
rxCreateTempDirectory
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- 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 benullperms- the permissions string- Returns:
- a future notified on completion
-
createTempDirectoryBlocking
Blocking version ofcreateTempDirectory(String)- Parameters:
dir-prefix-perms-- Returns:
-
createTempFile
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benullsuffix- the suffix string to be used in generating the file's name; may benull, in which case ".tmp" is used- Returns:
- a future notified on completion
-
rxCreateTempFile
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benullsuffix- the suffix string to be used in generating the file's name; may benull, in which case ".tmp" is used- Returns:
- a future notified on completion
-
createTempFileBlocking
Blocking version ofcreateTempFile(String, String)- Parameters:
prefix-suffix-- Returns:
-
createTempFile
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benullsuffix- the suffix string to be used in generating the file's name; may benull, in which case ".tmp" is usedperms-- Returns:
- a future notified on completion
-
rxCreateTempFile
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- Parameters:
prefix- the prefix string to be used in generating the directory's name; may benullsuffix- the suffix string to be used in generating the file's name; may benull, in which case ".tmp" is usedperms-- Returns:
- a future notified on completion
-
createTempFileBlocking
Blocking version ofcreateTempFile(String, String)- Parameters:
prefix-suffix-perms-- Returns:
-
createTempFile
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- 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 benullsuffix- the suffix string to be used in generating the file's name; may benull, in which case ".tmp" is usedperms- the permissions string- Returns:
- a future notified on completion
-
rxCreateTempFile
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.createTempFilemethods, this method is only part of a temporary-file facility.ARuntime, or theFilemechanism may be used to delete the directory automatically.- 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 benullsuffix- the suffix string to be used in generating the file's name; may benull, in which case ".tmp" is usedperms- the permissions string- Returns:
- a future notified on completion
-
createTempFileBlocking
-
newInstance
-