Hey I want to ask how to copy multiple files from multiple folders to a single folders using R language
Assuming there are three folders:
- desktop/folder_A/task/sub_task/
- desktop/folder_B/task/sub_task/
- desktop/folder_C/task/sub_task/
In each of the sub_task folder, there are multiple files. I want to copy all the files in the sub_task folders and paste them in a new folder (let's name this new folder as "all_sub_task") on desktop. Can anyone show me how to do it in R using the loop or apply function? Thanks in advance.