Object/Class

better.files

File

Related Docs: class File | package files

Permalink

object File

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. File
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Attributes = Seq[FileAttribute[_]]

    Permalink
  2. type CopyOptions = Seq[CopyOption]

    Permalink
  3. type Events = Seq[Kind[_]]

    Permalink
  4. type LinkOptions = Seq[LinkOption]

    Permalink
  5. trait Monitor extends AutoCloseable

    Permalink

    Implement this interface to monitor the root file

  6. type OpenOptions = Seq[OpenOption]

    Permalink
  7. type Order = Ordering[File]

    Permalink
  8. abstract class PathMatcherSyntax extends AnyRef

    Permalink
  9. class RandomAccessMode extends AnyRef

    Permalink
  10. type VisitOptions = Seq[FileVisitOption]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Attributes

    Permalink
  5. object CopyOptions

    Permalink
  6. object Events

    Permalink
  7. object LinkOptions

    Permalink
  8. object OpenOptions

    Permalink
  9. object Order

    Permalink
  10. object PathMatcherSyntax

    Permalink
  11. object RandomAccessMode

    Permalink
  12. object VisitOptions

    Permalink
  13. def apply(uri: URI): File

    Permalink
  14. def apply(url: URL): File

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

    Permalink

    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.

    anchor

    path to be used as anchor

    path

    as string

    fragments

    optional path fragments

    returns

    absolute, normalize path

  16. def apply(path: String, fragments: String*): File

    Permalink
  17. implicit def apply(path: Path): File

    Permalink
  18. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def copyResource(name: String)(destination: File = ...): destination.type

    Permalink

    Copies a resource into a file

    Copies a resource into a file

    destination

    File where resource is copied into, if not specified a temp file is created

  21. def currentWorkingDirectory: File

    Permalink
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. def home: File

    Permalink
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def newTemporaryDirectory(prefix: String = "", parent: Option[File] = None)(implicit attributes: Attributes = Attributes.default): File

    Permalink
  31. def newTemporaryFile(prefix: String = "", suffix: String = "", parent: Option[File] = None)(implicit attributes: Attributes = Attributes.default): File

    Permalink
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def numberOfOpenFileDescriptors(): Long

    Permalink
  35. def resource(name: String): File

    Permalink

    Get a file from a resource Note: Use resourceToFile instead as this may not actually always load the file See: http://stackoverflow.com/questions/676250/different-ways-of-loading-a-file-as-an-inputstream

  36. def root: File

    Permalink
  37. def roots: Iterable[File]

    Permalink
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def temp: File

    Permalink
  40. def temporaryDirectory(prefix: String = "", parent: Option[File] = None, attributes: Attributes = Attributes.default): ManagedResource[File]

    Permalink
  41. def temporaryFile[U](prefix: String = "", suffix: String = "", parent: Option[File] = None, attributes: Attributes = Attributes.default): ManagedResource[File]

    Permalink
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. def usingTemporaryDirectory[U](prefix: String = "", parent: Option[File] = None, attributes: Attributes = Attributes.default)(f: (File) ⇒ U): Unit

    Permalink
  44. def usingTemporaryFile[U](prefix: String = "", suffix: String = "", parent: Option[File] = None, attributes: Attributes = Attributes.default)(f: (File) ⇒ U): Unit

    Permalink
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped