final class RichFile extends AnyVal
- Source
- RichFile.scala
- Alphabetic
- By Inheritance
- RichFile
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def classpathLastModified(cl: ClassLoader): Long
- def classpathLastModified: Long
- def classpathLength(cl: ClassLoader): Long
- def classpathLength: Long
- def extension: Option[String]
The extension (if any) of this file
- val f: File
- 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
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isClasspathDirectory(cl: ClassLoader): Boolean
- def isClasspathDirectory: Boolean
- def isClasspathFile(cl: ClassLoader): Boolean
- def isClasspathFile: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- def nameWithoutExtension: String
The name of the file without it's extension
- def stripLeading(path: File): File
If this path starts with the passed in path then strip it
- def stripTrailing(path: File): File
If this path ends with the passed in path then strip it
- def toResourcePath: String
- def toString(): String
- Definition Classes
- Any
- def withExtension(ext: String): File
Change or Add an extension to this file