File

better.files.File$
See theFile companion class
object File

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
File.type

Members list

Concise view

Type members

Classlikes

object Attributes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Events

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Events.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait Monitor extends AutoCloseable

Implement this interface to monitor the root file

Implement this interface to monitor the root file

Attributes

Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Order

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Order.type
abstract class PathMatcherSyntax(name: String)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Types

type Attributes = Seq[FileAttribute[_]]
type CopyOptions = Seq[CopyOption]
type Events = Seq[Kind[_]]
type LinkOptions = Seq[LinkOption]
type OpenOptions = Seq[OpenOption]
type Order = Ordering[File]
type VisitOptions = Seq[FileVisitOption]

Value members

Concrete methods

def apply(path: String, fragments: String*): File
def apply(anchor: File, path: String, fragments: String*): File

Get File to path with help of reference anchor.

Get File to path with help of reference anchor.

Anchor is used as a reference in case that path is not absolute. Anchor could be path to directory or path to file. If anchor is file, then file's parent dir is used as an anchor.

If anchor itself is relative, then anchor is used together with current working directory.

NOTE: If anchor is non-existing path on filesystem, then it's always treated as file, e.g. it's last component is removed when it is used as an anchor.

Attributes

anchor

path to be used as anchor

fragments

optional path fragments

path

as string

Returns:

absolute, normalize path

def apply(url: URL): File
def apply(uri: URI): File
def home: File
def newTemporaryDirectory(prefix: String, parent: Option[File])(implicit attributes: Attributes): File
def newTemporaryFile(prefix: String, suffix: String, parent: Option[File])(implicit attributes: Attributes): File
def root: File
def roots: Iterable[File]
def temp: File
def temporaryDirectory(prefix: String, parent: Option[File], attributes: Attributes): Dispose[File]
def temporaryFile[U](prefix: String, suffix: String, parent: Option[File], attributes: Attributes): Dispose[File]
def usingTemporaryDirectory[U](prefix: String, parent: Option[File], attributes: Attributes)(f: File => U): Unit
def usingTemporaryFile[U](prefix: String, suffix: String, parent: Option[File], attributes: Attributes)(f: File => U): Unit

Implicits

Implicits

implicit def apply(path: Path): File