Java org.apache.hadoop.fs FileUtil fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.fs FileUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.fs FileUtil.

The text is from its open source code.

Subclass

org.apache.hadoop.fs.FileUtil has subclasses.
Click this link to see all its subclasses.

Constructor

Method

booleancanExecute(File f)
Platform independent implementation for File#canExecute()
booleancanRead(File f)
Platform independent implementation for File#canRead()
booleancanWrite(File f)
Platform independent implementation for File#canWrite()
intchmod(String filename, String perm)
Change the permissions on a filename.
intchmod(String filename, String perm, boolean recursive)
Change the permissions on a file / directory, recursively, if needed.
booleancopy(FileSystem srcFS, Path[] srcs, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf)
booleancopy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf)
Copy files between FileSystems.
booleancopy(FileSystem srcFS, FileStatus srcStatus, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf)
Copy files between FileSystems.
booleancopy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf)
Copy files between FileSystems.
booleancopy(File src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf)
Copy local files to a FileSystem.
booleancopy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf)
Copy FileSystem files to local files.
booleancopy(FileSystem srcFS, FileStatus srcStatus, File dst, boolean deleteSource, Configuration conf)
Copy FileSystem files to local files.
FilecreateLocalTempFile(final File basefile, final String prefix, final boolean isDeleteOnExit)
Create a tmp file for a base file.
booleanfullyDelete(final File dir)
Delete a directory and all its contents.
booleanfullyDelete(final File dir, boolean tryGrantPermissions)
Delete a directory and all its contents.
voidfullyDelete(FileSystem fs, Path dir)
Recursively delete a directory.
StringmakeShellPath(String filename)
Convert a os-native filename to a path that works for the shell.
StringmakeShellPath(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.
intsymLink(String target, String linkname)
Create a soft link between a src and destination only on a local disk.
voidunTar(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.
voidunZip(InputStream inputStream, File toDir)
Given a stream input it will unzip the it in the unzip directory.
voidunZip(File inFile, File unzipDir)
Given a File input it will unzip it in the unzip directory.