scalax.io

object FileHelp

[source: scalax/io/FileHelp.scala]

object FileHelp
extends AnyRef
Some shortcuts for file operations.
Value Summary
val lineSeparator : java.lang.String
Method Summary
def copy (src : java.io.File, dest : java.io.File) : Unit
Copies a file.
def deleteRecursively (file : java.io.File) : Boolean
Deletes a file or directory recursively. Returns false if it failed.
def extension (file : java.io.File) : scala.Option[java.lang.String]
Attempts to return the file extension.
def move (src : java.io.File, dest : java.io.File) : Unit
Moves a file, by rename if possible, otherwise by copy-and-delete.
def tmpDir : java.io.File
def unzip (zipfile : java.io.File, outdir : java.io.File) : Unit
Unzips a file into the specified directory.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
val lineSeparator : java.lang.String

Method Details
def deleteRecursively(file : java.io.File) : Boolean
Deletes a file or directory recursively. Returns false if it failed.

def unzip(zipfile : java.io.File, outdir : java.io.File) : Unit
Unzips a file into the specified directory.

def extension(file : java.io.File) : scala.Option[java.lang.String]
Attempts to return the file extension.

def copy(src : java.io.File, dest : java.io.File) : Unit
Copies a file.

def move(src : java.io.File, dest : java.io.File) : Unit
Moves a file, by rename if possible, otherwise by copy-and-delete.

def tmpDir : java.io.File


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.