| java.lang.Object org.objectweb.jonas_lib.files.FileUtils
FileUtils | public class FileUtils (Code) | | This class manages operation done many times by JOnAS on files, like copying
them.
author: Florent Benoit |
copyDirectory | public static void copyDirectory(File src, File dest) throws FileUtilsException(Code) | | Copy a directory recursively
Parameters: src - source directory Parameters: dest - dest directory throws: FileUtilsException - if the copy of the directory failed |
delete | public static boolean delete(String path)(Code) | | Parameters: path - file/directory to be deleted true if deletion was OK |
delete | public static boolean delete(File f)(Code) | | Parameters: f - file/directory to be deleted true if deletion was OK |
getFileList | public static String[] getFileList(File dir, String prefix, String suffix)(Code) | | return a list of files with this suffix in directory dstr
|
unpack | public static void unpack(JarFile packedJar, File dest) throws FileUtilsException(Code) | | Unpack the source archive in a given directory and returns directory
directory created.
Parameters: packedJar - source JarFile to be unpacked Parameters: dest - the destination folder throws: FileUtilsException - When unpack fails |
|
|