Dotty Documentation

0.5.0-bin-SNAPSHOT

object AbstractFile
extends Object

An abstraction over files for use in the reflection/compiler libraries.

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

[-] Constructors

[-] Members

[+] def getDirectory ( path: String ) : AbstractFile
[+] def getDirectory ( path: JPath ) : AbstractFile
[+] def getDirectory ( path: Path ) : AbstractFile

If the specified File exists and is either a directory or a readable zip or jar archive, returns an abstract directory backed by it. Otherwise, returns null.

[+] def getFile ( path: String ) : AbstractFile
[+] def getFile ( path: JPath ) : AbstractFile
[+] def getFile ( path: Path ) : AbstractFile

If the specified File exists and is a regular file, returns an abstract regular file backed by it. Otherwise, returns null.

[+] def getResources ( url: URL ) : AbstractFile
[+] def getURL ( url: URL ) : AbstractFile

If the specified URL exists and is a regular file or a directory, returns an abstract regular file or an abstract directory, respectively, backed by it. Otherwise, returns null.