I have assigned the variable 'filename' to a specific file within my directory (VHRSA_WORK = /scratch/model/VHRSA/2019082200/) using the line of code below:
filename <- paste(VHRSA_WORK,"VHRSA_TMIN_DAILY_",current_date,".nc",sep="")
I want to copy the selected file and put it into a new directory (WFRTncOpers = Share_OtherData/VHRSA/TMIN_daily/). However, when I do so using:
copy_cmd = paste("rclone copyto ",filename, " ", WFRTncOpers,filename, sep='')
Instead of writing the specified file into the new directory, it writes the entire directory hierarchy (VHRSA_WORK) to the file. The output is shown below.
"running command: rclone copyto /scratch/model/VHRSA/2019082200/VHRSA_TMIN_DAILY_2019-08-19.nc Share_OtherData/VHRSA/TMIN_daily//scratch/model/VHRSA/2019082200/VHRSA_TMIN_DAILY_2019-08-19.nc
How can I copy ONLY the file (VHRSA_TMIN_DAILY_2019-08-19.c) into the new directory? Thank you!