Struct hdfs::HdfsUtil
[−]
[src]
pub struct HdfsUtil;
Hdfs Utility
Methods
impl HdfsUtil
HDFS Utility
fn copy(src_fs: &HdfsFs, src: &str, dst_fs: &HdfsFs, dst: &str) -> Result<bool, HdfsErr>
Copy file from one filesystem to another.
Params
srcFS- The handle to source filesystem.src- The path of source file.dstFS- The handle to destination filesystem.dst- The path of destination file.
fn mv(src_fs: &HdfsFs, src: &str, dst_fs: &HdfsFs, dst: &str) -> Result<bool, HdfsErr>
Move file from one filesystem to another.
Params
srcFS- The handle to source filesystem.src- The path of source file.dstFS- The handle to destination filesystem.dst- The path of destination file.