FileReader

The FileReader trait provides most of the File API methods as an interface in order to be able to mock them

Companion:
object
class Object
trait Matchable
class Any
object FileReader.type

Value members

Concrete methods

def canRead(path: String): Boolean
Returns:

true if the file can be read

def canWrite(path: String): Boolean
Returns:

true if the file can be written

def exists(path: String): Boolean
Returns:

true if the file exists

def getAbsolutePath(path: String): String
Returns:

the file absolute path

def getCanonicalPath(path: String): String
Returns:

the file canonical path

def getName(path: String): String
Returns:

the file name

def getParent(path: String): String
Returns:

the file parent path

def isAbsolute(path: String): Boolean
Returns:

true if the file is absolute

def isDirectory(path: String): Boolean
Returns:

true if the file is a directory

def isFile(path: String): Boolean
Returns:

true if the file is a file

def isHidden(path: String): Boolean
Returns:

true if the file is hidden

def listFiles(path: String): List[String]
Returns:

the files of that directory