Class

de.sciss.file

RichFile

Related Doc: package file

Permalink

implicit final class RichFile extends AnyVal

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. All

Instance Constructors

  1. new RichFile(peer: File)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. def /(child: String): File

    Permalink

    Constructs a sub-file of this file by appending a new path component.

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  5. def absolute: File

    Permalink
  6. def absolutePath: String

    Permalink

    The string representation of the absolute location of this file.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def base: String

    Permalink

    Returns the name part of the file and drops the extension (if any).

  9. def baseAndExt: (String, String)

    Permalink

    Returns a tuple consisting of the file's name (without extension), and the extension (period dropped).

  10. def children(filter: (File) ⇒ Boolean): IndexedSeq[File]

    Permalink

    Lists all children of this directory which satisfy a predicate.

    Lists all children of this directory which satisfy a predicate. Returns an empty sequence if this file does not denote a directory.

    filter

    a filter predicate to select children

  11. def children: IndexedSeq[File]

    Permalink

    Lists all children of this directory.

    Lists all children of this directory. Returns an empty sequence if this file does not denote a directory.

  12. def ext: String

    Permalink

    Returns the extension of the file (period dropped).

    Returns the extension of the file (period dropped). Returns and empty string if no extension is given.

  13. def extL: String

    Permalink

    Returns the extension of the file (period dropped) in lower case letters.

    Returns the extension of the file (period dropped) in lower case letters. Returns and empty string if no extension is given.

  14. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def name: String

    Permalink

    Returns the name part of the file.

  17. def parent: File

    Permalink
  18. def parentOption: Option[File]

    Permalink
  19. def path: String

    Permalink

    The string representation of this file.

  20. val peer: File

    Permalink
  21. def relativize(parent: File): File

    Permalink

    Creates from this file a new file instance relative to a given parent directory.

    Creates from this file a new file instance relative to a given parent directory. Throws an exception if if parent does not constitute a parent directory.

  22. def relativizeOption(parent: File): Option[File]

    Permalink

    Creates from this file a new file instance relative to a given parent directory.

    Creates from this file a new file instance relative to a given parent directory.

    returns

    Some if this file is relative to parent, None if parent does not constitute a parent directory

  23. def replaceExt(s: String): File

    Permalink

    Replaces the extension by a given string.

    Replaces the extension by a given string. If the file did not have any extension, it will be added by this call.

    s

    the extension to use in replacement. May or may not contain a leading period.

  24. def replaceName(s: String): File

    Permalink

    Replaces the name part of this file, keeping the parent directory.

  25. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped