|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.fs.FileUtil
public class FileUtil
A collection of file-processing util methods
Constructor Summary | |
---|---|
FileUtil()
|
Method Summary | |
---|---|
static boolean |
copyContents(FileSystem fs,
File src,
File dst,
boolean overwrite,
Configuration conf)
Copy a file's contents to a new location. |
static boolean |
fullyDelete(File dir,
Configuration conf)
Delete a directory and all its contents. |
static boolean |
fullyDelete(FileSystem fs,
File dir)
|
static void |
recursiveCopy(FileSystem fs,
File src,
File dst,
Configuration conf)
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, Configuration conf) throws IOException
IOException
public static boolean fullyDelete(FileSystem fs, File dir) throws IOException
IOException
public static boolean copyContents(FileSystem fs, File src, File dst, boolean overwrite, Configuration conf) throws IOException
IOException
public static void recursiveCopy(FileSystem fs, File src, File dst, Configuration conf) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |