class PlainFile
extends AbstractFile

This class implements an abstract file backed by a File.

''Note: This library is considered experimental and should not be used unless you know what you are doing.''

Constructors

PlainFile ( givenPath: Path )

Members

val file : File
private val fpath : Path
val givenPath : Path
def absolute : AbstractFile

The absolute file.

The absolute file.

override def container : AbstractFile
def create ( ) : Unit
def delete ( ) : Unit

Delete the underlying file or directory (recursively).

Delete the underlying file or directory (recursively).

override def equals ( that: Any ) : Boolean
override def hashCode ( ) : Int
override def input : InputStream
def isDirectory : Boolean

Is this abstract file a directory?

Is this abstract file a directory?

def iterator : Iterator [ AbstractFile ]

Returns all abstract subfiles of this abstract directory.

Returns all abstract subfiles of this abstract directory.

def lastModified : Long

Returns the time that this abstract file was last modified.

Returns the time that this abstract file was last modified.

[+] def lookupName ( name: String , directory: Boolean ) : AbstractFile

Returns the abstract file in this abstract directory with the specified name. If there is no such file, returns null. The argument "directory" tells whe...

Returns the abstract file in this abstract directory with the specified name. If there is no such file, returns null. The argument "directory" tells whether to look for a directory or or a regular file.

def lookupNameUnchecked ( name: String , directory: Boolean ) : AbstractFile

Returns a plain file with the given name. It does not check that it exists.

Returns a plain file with the given name. It does not check that it exists.

def name : String

Returns the name of this abstract file.

Returns the name of this abstract file.

override def output : OutputStream
def path : String

Returns the path of this abstract file.

Returns the path of this abstract file.

override def sizeOption : Option [ Int ]
override def underlyingSource : Option [ AbstractFile ]