public class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(File source,
File destination)
Copies source file to destination file.
|
static void |
copyFileToDir(File source,
File destination)
Copies src file to dst directory.
|
static boolean |
deleteDir(File dir)
Deletes all files and subdirectories under dir.
|
public static boolean deleteDir(File dir)
dir - The directory to be deletedpublic static void copyFile(File source, File destination) throws IOException
source - The source filedestination - The destination fileIOException - If an Exception occurs while copyingpublic static void copyFileToDir(File source, File destination) throws IOException
source - The file to be copieddestination - The destination directory to which the file has to be copiedIOException - If an error occurs while copyingCopyright © 2017 WSO2. All rights reserved.