c

fm.common.rich

RichFile

final class RichFile extends AnyVal

Source
RichFile.scala
Linear Supertypes
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(f: File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def classpathLastModified(cl: ClassLoader): Long
  6. def classpathLastModified: Long
  7. def classpathLength(cl: ClassLoader): Long
  8. def classpathLength: Long
  9. def extension: Option[String]

    The extension (if any) of this file

  10. val f: File
  11. def findFiles(recursive: Boolean = true): Vector[File]

    Find all files under this directory (directories are not included in the result)

    Find all files under this directory (directories are not included in the result)

    Deprecated due to ambiguity. Prefer the fm.lazyseq.Implicits.RichLazySeqFile implementation

    Annotations
    @Deprecated
  12. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  13. def isClasspathDirectory(cl: ClassLoader): Boolean
  14. def isClasspathDirectory: Boolean
  15. def isClasspathFile(cl: ClassLoader): Boolean
  16. def isClasspathFile: Boolean
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def lastModifiedWithSecondPrecision: Long

    The File.lastModified value truncated to seconds (which matches the pre JDK-9 Linux/OSX behavior of File.lastModified)

    The File.lastModified value truncated to seconds (which matches the pre JDK-9 Linux/OSX behavior of File.lastModified)

    returns

    The number of milliseconds since since the epoch (00:00:00 GMT, January 1, 1970) truncated to second precision.

  19. def nameWithoutExtension: String

    The name of the file without it's extension

  20. def stripLeading(path: File): File

    If this path starts with the passed in path then strip it

  21. def stripTrailing(path: File): File

    If this path ends with the passed in path then strip it

  22. def toResourcePath: String
  23. def toString(): String
    Definition Classes
    Any
  24. def withExtension(ext: String): File

    Change or Add an extension to this file

Inherited from AnyVal

Inherited from Any

Ungrouped