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
- Alphabetic
- By Inheritance
- File
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new File(toJava: java.io.File)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
/(ss: FilePath): File
appends a relative path
-
def
/(ss: List[String]): File
appends a list of path segments
-
def
/(s: String): File
appends one path segment
-
def
<=(that: File): Boolean
- returns
true if that begins with this
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addExtension(ext: String): File
appends a file extension (possibly resulting in multiple extensions)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canonical: File
-
def
children: List[File]
- returns
children of this directory
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
deleteDir: Unit
delete this, recursively if directory
-
def
descendants: List[File]
- returns
all files in this directory or any subdirectory
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
existsCompressed: Boolean
tests if this exists, possibly in compressed form
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getExtension: Option[String]
- returns
the last file extension (if any)
- def isAbsolute: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRoot: Boolean
-
def
name: String
file name
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
openInOS(): Unit
opens this file using the associated (native) application
-
def
relativize(f: File): File
makes a file relative to this one
-
def
resolve(s: String): File
resolves an absolute or relative path string against this
-
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
-
def
setExtension(ext: String): File
sets the file extension (replaces existing extension, if any)
-
def
stripExtension: File
removes the last file extension (if any)
-
def
stripExtensionCompressed: File
removes the last file extension (if any)
-
def
subdirs: List[File]
- returns
subdirectories of this directory
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFilePath: FilePath
segments as a FilePath
- val toJava: java.io.File
-
def
toString(): String
- Definition Classes
- File → AnyRef → Any
-
def
up: File
parent directory
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()