Packages

implicit final class RichFile extends AnyVal

Pimped File class.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichFile
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RichFile(file: File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def /(path: String): File
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def children: List[File]

    returns

    a list of this file's children. Will be Nil if this file isn't a directory

  7. def deleteEventually(): Unit

    Ensures that the file is deleted eventually by first trying to delete it immediately, and using deleteOnExit if that fails.

  8. val file: File
  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def loadFrom(stream: InputStream): Boolean

    Write the contents of the stream into this file.

    Write the contents of the stream into this file.

    stream

    the source

    returns

    true on success, false on an error

  12. def parent: Option[File]

    returns

    this file's parent, optionally

  13. def pathSegments: List[String]
  14. def read[A](body: (InputStream) => A): A
  15. def readAsSource[A](body: (Source) => A)(implicit codec: Codec): A
  16. def readBuffered[A](body: (BufferedInputStream) => A): A
  17. def toString(): String
    Definition Classes
    Any
  18. def write(body: (OutputStream) => Unit): Boolean

    Write to this file.

    Write to this file.

    body

    A function that takes an output stream and writes to it.

    returns

    true if everything completes normally, false otherwise.

Inherited from AnyVal

Inherited from Any

Ungrouped