| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
object fs
extends
FileSystem
def this
|
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| asList |
implicit def asList[T](v : Vector[T])
[details]
|
List[T] | JavaConversions |
| canRead |
def canRead(path : String)
[details]
|
Boolean | FileSystem |
| canWrite |
def canWrite(path : String)
[details]
|
Boolean | FileSystem |
| clone |
protected def clone
|
Object | AnyRef |
| createDir |
def createDir(path : String)
creates a directory for a given path
|
Boolean | FileSystem |
| createFile |
def createFile(path : String)
creates a file for a given path
[details]
Create the parent directory if necessary
|
Boolean | FileSystem |
| enumerationToList |
implicit def enumerationToList[T](e : Enumeration[T])
[details]
|
List[T] | JavaConversions |
| eq |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| exists |
def exists(path : String)
[details]
|
Boolean | FileSystem |
| filePaths |
def filePaths(path : String)
[details]
|
List[String] | FileSystem |
| finalize |
protected def finalize
|
Unit | AnyRef |
| getAbsolutePath |
def getAbsolutePath(path : String)
[details]
|
String | FileSystem |
| getCanonicalPath |
def getCanonicalPath(path : String)
[details]
|
String | FileSystem |
| getClass |
final def getClass
|
Class[Object] | AnyRef |
| getName |
def getName(path : String)
[details]
|
String | FileSystem |
| getParent |
def getParent(path : String)
[details]
|
String | FileSystem |
| getWriter |
def getWriter(path : String)
The getWriter function can be overriden to provide a mock writer writing to the console for example
[details]
|
Writer | FileWriter |
| globToPattern |
def globToPattern(glob : String)
[details]
|
String | FileSystem |
| hashCode |
def hashCode
|
Int | AnyRef |
| isAbsolute |
def isAbsolute(path : String)
[details]
|
Boolean | FileSystem |
| isDir |
def isDir(path : String)
[details]
|
Boolean | FileSystem |
| isDirectory |
def isDirectory(path : String)
[details]
|
Boolean | FileSystem |
| isFile |
def isFile(path : String)
[details]
|
Boolean | FileSystem |
| isHidden |
def isHidden(path : String)
[details]
|
Boolean | FileSystem |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| javaArrayToList |
implicit def javaArrayToList[T](array : Array[T])
[details]
|
List[T] | JavaConversions |
| listFiles |
def listFiles(path : String)
[details]
|
List[String] | FileSystem |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| readFile |
def readFile(path : String)
reads the content of a file
[details]
|
String | FileReader |
| removeDir |
def removeDir(path : String)
deletes the directory and all directory contents at the specified path and return the parent path of that directory
|
String | FileSystem |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString |
def toString
|
String | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait |
final def wait
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| write |
def write(path : String)(function : (Writer) => Unit)
writes some content to a file and take care of closing the file
[details]
Usage:
write("./dir/hello.txt") { out =>
out.write("content")
}
|
Unit | FileWriter |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |