|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.fs.local.FileUtil
public final class FileUtil
Static utility methods for recursively copying and deleting files and directories.
| Method Summary | |
|---|---|
static void |
copy(File src,
File dest)
Recursively copies the given file or directory to the given destination. |
static void |
delete(File f)
Recursively deletes the given file or directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void copy(File src,
File dest)
throws IOException
src - source file or directorydest - destination file or directory
IOException - if the file or directory cannot be copied
public static void delete(File f)
throws IOException
f - file or directory
IOException - if the file or directory cannot be deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||