A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://hadoop.apache.org/docs/r2.7.4/api/org/apache/hadoop/fs/FileUtil.html below:

FileUtil (Apache Hadoop Main 2.7.4 API)

Modifier and Type Method and Description static boolean canExecute(File f) static boolean canRead(File f) static boolean canWrite(File f) static int chmod(String filename, String perm)

Change the permissions on a filename.

static int chmod(String filename, String perm, boolean recursive)

Change the permissions on a file / directory, recursively, if needed.

static boolean copy(File src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf)

Copy local files to a FileSystem.

static boolean copy(FileSystem srcFS, FileStatus srcStatus, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf)

Copy files between FileSystems.

static boolean copy(FileSystem srcFS, Path[] srcs, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf)  static boolean copy(FileSystem srcFS, Path src, File dst, boolean deleteSource, Configuration conf)

Copy FileSystem files to local files.

static boolean copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, boolean overwrite, Configuration conf)

Copy files between FileSystems.

static boolean copy(FileSystem srcFS, Path src, FileSystem dstFS, Path dst, boolean deleteSource, Configuration conf)

Copy files between FileSystems.

static boolean copyMerge(FileSystem srcFS, Path srcDir, FileSystem dstFS, Path dstFile, boolean deleteSource, Configuration conf, String addString)

Copy all files in a directory to one output file (merge).

static String[] createJarWithClassPath(String inputClassPath, Path pwd, Map<String,String> callerEnv)  static String[] createJarWithClassPath(String inputClassPath, Path pwd, Path targetDir, Map<String,String> callerEnv)

Create a jar file at the given path, containing a manifest with a classpath that references all specified entries.

static File createLocalTempFile(File basefile, String prefix, boolean isDeleteOnExit)

Create a tmp file for a base file.

static boolean fullyDelete(File dir)

Delete a directory and all its contents.

static boolean fullyDelete(File dir, boolean tryGrantPermissions)

Delete a directory and all its contents.

static void fullyDelete(FileSystem fs, Path dir) static boolean fullyDeleteContents(File dir)

Delete the contents of a directory, not the directory itself.

static boolean fullyDeleteContents(File dir, boolean tryGrantPermissions)

Delete the contents of a directory, not the directory itself.

static long getDU(File dir)

Takes an input dir and returns the du on that local directory.

static String[] list(File dir) static File[] listFiles(File dir) static String makeShellPath(File file)

Convert a os-native filename to a path that works for the shell.

static String makeShellPath(File file, boolean makeCanonicalPath)

Convert a os-native filename to a path that works for the shell.

static String makeShellPath(String filename)

Convert a os-native filename to a path that works for the shell.

static String readLink(File f)

Returns the target of the given symlink.

static void replaceFile(File src, File target)

Move the src file to the name specified by target.

static boolean setExecutable(File f, boolean executable) static void setOwner(File file, String username, String groupname)

Set the ownership on a file / directory.

static void setPermission(File f, FsPermission permission)

Set permissions to the required value.

static boolean setReadable(File f, boolean readable) static boolean setWritable(File f, boolean writable) static Path[] stat2Paths(FileStatus[] stats)

convert an array of FileStatus to an array of Path

static Path[] stat2Paths(FileStatus[] stats, Path path)

convert an array of FileStatus to an array of Path.

static int symLink(String target, String linkname)

Create a soft link between a src and destination only on a local disk.

static 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.

static void unZip(File inFile, File unzipDir)

Given a File input it will unzip the file in a the unzip directory passed as the second parameter


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4