Packages

case class File(toJava: java.io.File) extends Product with Serializable

File wraps around java.io.File to extend it with convenience methods

see implicit conversions with java.io.File at the end of this file

Source
File.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. File
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new File(toJava: java.io.File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def /(ss: FilePath): File

    appends a relative path

  4. def /(ss: List[String]): File

    appends a list of path segments

  5. def /(s: String): File

    appends one path segment

  6. def <=(that: File): Boolean

    returns

    true if that begins with this

  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def addExtension(ext: String): File

    appends a file extension (possibly resulting in multiple extensions)

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def canonical: File
  11. def children: List[File]

    returns

    children of this directory

  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. def deleteDir: Unit

    delete this, recursively if directory

  14. def descendants: List[File]

    returns

    all files in this directory or any subdirectory

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def existsCompressed: Boolean

    tests if this exists, possibly in compressed form

  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getExtension: Option[String]

    returns

    the last file extension (if any)

  20. def isAbsolute: Boolean
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isRoot: Boolean
  23. def name: String

    file name

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def openInOS(): Unit

    opens this file using the associated (native) application

  28. def relativize(f: File): File

    makes a file relative to this one

  29. def resolve(s: String): File

    resolves an absolute or relative path string against this

  30. def segments: List[String]

    the list of file/directory/volume label names making up this file path an absolute Unix paths begin with an empty segment

  31. def setExtension(ext: String): File

    sets the file extension (replaces existing extension, if any)

  32. def stripExtension: File

    removes the last file extension (if any)

  33. def stripExtensionCompressed: File

    removes the last file extension (if any)

  34. def subdirs: List[File]

    returns

    subdirectories of this directory

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toFilePath: FilePath

    segments as a FilePath

  37. val toJava: java.io.File
  38. def toString(): String
    Definition Classes
    File → AnyRef → Any
  39. def up: File

    parent directory

  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped