copy_files.Rd
Copy flat files from HDFS folder or local R project folder to HDFS folder.
copy_files(hdfsUri, dirUri, destUri, user_name, copy_all = TRUE, fname = "", from_hdfs = TRUE, from_folder = "", newname = "", rm_temp_file = TRUE)
hdfsUri, | the url of the platform |
---|---|
dirUri, | the path to the folder of origin |
destUri, | the path to the folder of destination |
user_name, | credential with writing credential |
copy_all, | optionnal argument : shall all the files in origin folder be copied ? |
fname, | optionnal argument : name of the unique file to copy |
from_hdfs, | optionnal argument : is the file stored locally in R session ? |
from_folder, | optionnal argument to upload file from local directory (with `/` at the end) |
newname, | optionnal default to "", usefull when copy from HDFS : allow copied file renaming |
rm_temp_file, | default to TRUE to remove local copy of the file |
nada, the file is copied either from HDFS (by default) or from R session to the wanted HDFS directory.