|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.fs.FileUtil
A collection of file-processing util methods
Constructor Summary | |
FileUtil()
|
Method Summary | |
static boolean |
copyContents(NutchFileSystem nfs,
File src,
File dst,
boolean overwrite)
Copy a file's contents to a new location. |
static boolean |
fullyDelete(File dir)
Delete a directory and all its contents. |
static boolean |
fullyDelete(NutchFileSystem nfs,
File dir)
|
static void |
recursiveCopy(NutchFileSystem nfs,
File src,
File dst)
Copy a file and/or directory and all its contents (whether data or other files/dirs) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUtil()
Method Detail |
public static boolean fullyDelete(File dir) throws IOException
IOException
public static boolean fullyDelete(NutchFileSystem nfs, File dir) throws IOException
IOException
public static boolean copyContents(NutchFileSystem nfs, File src, File dst, boolean overwrite) throws IOException
IOException
public static void recursiveCopy(NutchFileSystem nfs, File src, File dst) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |