play.libs
Class Files

java.lang.Object
  extended by play.libs.Files

public class Files
extends java.lang.Object

Files utils


Constructor Summary
Files()
           
 
Method Summary
static void copy(java.io.File from, java.io.File to)
          Just copy a file
static boolean copyDir(java.io.File from, java.io.File to)
           
static boolean delete(java.io.File file)
          Just delete a file.
static boolean deleteDirectory(java.io.File path)
          Recursively delete a directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Files

public Files()
Method Detail

copy

public static void copy(java.io.File from,
                        java.io.File to)
Just copy a file

Parameters:
from -
to -

delete

public static boolean delete(java.io.File file)
Just delete a file. If the file is a directory, it's work.

Parameters:
file - The file to delete

deleteDirectory

public static boolean deleteDirectory(java.io.File path)
Recursively delete a directory.


copyDir

public static boolean copyDir(java.io.File from,
                              java.io.File to)


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly