Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Create a URL from a string, ensuring validity first.
Create a URL from a string, ensuring validity first. This URL constructor parses an url string for validity and then constructs the URL. In no case will it construct a URL with a basis.
Value parameters
- url
-
The string to parse into a URL. Only supports file: http: and https: schemes
Attributes
- Constructor
- Source
- URL.scala
Construct a URL from a partial path that is interpreted as the suffix to the current working directory (cwd).
Construct a URL from a partial path that is interpreted as the suffix to the current working directory (cwd).
Value parameters
- path
-
The trailing path to add to the current working directory. This must not start with a '/' or an exception will be thrown.
Attributes
- Returns
-
The corresponding URL
- Source
- URL.scala
Construct a URL from a path string.
Construct a URL from a path string. The entire path is taken as the basis of the URL so relative paths can be constructed from it. Generally only directory paths should be used with this constructor.
Value parameters
- path
-
The full path of the intended URL. This *must* start with a / or an exception will be thrown.
Attributes
- Returns
-
The corresponding URL
- Source
- URL.scala