public final class UnderFileSystemUtils extends Object
UnderFileSystem.| Modifier and Type | Method and Description |
|---|---|
static void |
deleteDir(String path,
TachyonConf tachyonConf)
Deletes the directory at the given path.
|
static void |
mkdirIfNotExists(String path,
TachyonConf tachyonConf)
Attempts to create the directory if it does not already exist.
|
static void |
touch(String path,
TachyonConf tachyonConf)
Creates an empty file.
|
public static void deleteDir(String path, TachyonConf tachyonConf) throws IOException
path - path to the directorytachyonConf - Tachyon configurationIOException - if the directory cannot be deletedpublic static void mkdirIfNotExists(String path, TachyonConf tachyonConf) throws IOException
path - path to the directorytachyonConf - Tachyon configurationIOException - if the directory cannot be createdpublic static void touch(String path, TachyonConf tachyonConf) throws IOException
path - path to the filetachyonConf - Tachyon ConfigurationIOException - if the file cannot be createdCopyright © 2015. All Rights Reserved.