Enumeration of the Access modes possible for accessing files
Create a Path on the default files system from a java.file.File
Create a Path from a URI.
Create a Path from a URI.
both the filesystem and the path can be determined from from the uri. For example:
file://c:\dir
will create an absolute Path
from the default filesystem with the Path = c:\dirjar://classes.jar!dir
creates a Path to the
dir directory in the jar filesystem classes.jar
The uri specifying the filesystem and path @return A path object
Creates an empty directory in the provided directory with the provided prefix and suffixes.
Creates an empty directory in the provided directory with the provided prefix and suffixes. The directory will not replace an existing file/directory and it is guaranteed to be unique and not previously used by another process at time of creation.
the starting characters of the directory name. Default is a randomly generated prefix
the last characters of the directory name Default is null (no suffix)
the directory to create the directory in. If null or not declared the directory will be created in the system temporary folder Default is null (system/user temp folder)
If true then the directory and all contained folders will be deleted when the JVM is shutdown. Default is true
The attributes to create on the file. Default is Nil(default system file attributes)
Creates an empty file in the provided directory with the provided prefix and suffixes.
Creates an empty file in the provided directory with the provided prefix and suffixes. The file will not replace an existing file and it is guaranteed to be unique and not previously used by another process at time of creation.
the starting characters of the file name. Default is a randomly generated prefix
the last characters of the file name Default is null (no suffix)
the directory to create the file in. If null or not declared the file will be created in the system temporary folder Default is null (system/user temp folder)
If true then the file will be deleted when the JVM is shutdown Default is true
The attributes to create on the file. Default is Nil(default system file attributes)
the filesystem that will create the temporary object Default is the default filesystem
Create a Path from a string
Create a Path from a string
the string to use for creating the Path
Method to implicitly convert a java.file.File
to a Path
object
Method to implicitly convert a java.file.File
to a Path
object
Lists the roots of the default filesystem
Method to implicitly convert a string to a Path object
Method to implicitly convert a string to a Path object
Allows matching on the full path of a Path
Allows matching on the full path of a Path
The match must be exact and in the same case as the path but the / and \ are interchangeable
Path("c:/dir/file")
Path("c:\\dir\\file")
both of the above examples will match the same pathFor more on matching Paths see Path.Matching
The object for constructing Path objects and for containing implicits from strings and
java.file.File
s to Scala paths.All Paths constructed by this factory are created for the default filesystem
0.1