fr.paris.lutece.plugins.comarquage.util
Class FileUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.comarquage.util.FileUtils

public final class FileUtils
extends java.lang.Object

File utilities


Method Summary
static boolean deleteDirectory(java.io.File path)
          Deletes all files and subdirs
static boolean fileExists(java.io.File file)
           
static boolean removeFile(java.io.File strFilePath)
          Delete the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removeFile

public static boolean removeFile(java.io.File strFilePath)
Delete the file

Parameters:
strFilePath - the file to delete
Returns:
true if the file as been deleted

fileExists

public static boolean fileExists(java.io.File file)
Parameters:
file - the file
Returns:
true if the file exist

deleteDirectory

public static boolean deleteDirectory(java.io.File path)
Deletes all files and subdirs

Parameters:
path - The path to delete
Returns:
true if the directory as been deleted


Copyright © 2008 Mairie de Paris. All Rights Reserved.