Example usage for Java org.apache.hadoop.fs FileUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | canExecute(File f) Platform independent implementation for File#canExecute() |
boolean | canRead(File f) Platform independent implementation for File#canRead() |
boolean | canWrite(File f) Platform independent implementation for File#canWrite() |
int | chmod(String filename, String perm) Change the permissions on a filename. |
int | chmod(String filename, String perm, boolean recursive) Change the permissions on a file / directory, recursively, if needed. |
boolean | copy(FileSystem srcFS, Path[] srcs, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) |
boolean | copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) Copy files between FileSystems. |
boolean | copy(FileSystem srcFS, FileStatus srcStatus, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf) Copy files between FileSystems. |
boolean | copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf) Copy files between FileSystems. |
boolean | copy(File src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf) Copy local files to a FileSystem. |
boolean | copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf) Copy FileSystem files to local files. |
boolean | copy(FileSystem srcFS, FileStatus srcStatus, File dst, boolean deleteSource, Configuration conf) Copy FileSystem files to local files. |
File | createLocalTempFile(final File basefile, final String prefix, final boolean isDeleteOnExit) Create a tmp file for a base file. |
boolean | fullyDelete(final File dir) Delete a directory and all its contents. |
boolean | fullyDelete(final File dir, boolean tryGrantPermissions) Delete a directory and all its contents. |
void | fullyDelete(FileSystem fs, Path dir) Recursively delete a directory. |
String | makeShellPath(String filename) Convert a os-native filename to a path that works for the shell. |
String | makeShellPath(File file) Convert a os-native filename to a path that works for the shell. |
Path[] | stat2Paths(FileStatus[] stats) convert an array of FileStatus to an array of Path |
Path[] | stat2Paths(FileStatus[] stats, Path path) convert an array of FileStatus to an array of Path. |
int | symLink(String target, String linkname) Create a soft link between a src and destination only on a local disk. |
void | unTar(File inFile, File untarDir) Given a Tar File as input it will untar the file in a the untar directory passed as the second parameter This utility will untar ".tar" files and ".tar.gz","tgz" files. |
void | unZip(InputStream inputStream, File toDir) Given a stream input it will unzip the it in the unzip directory. |
void | unZip(File inFile, File unzipDir) Given a File input it will unzip it in the unzip directory. |