0

I have to upload around 40-50 piece of files (same extensions) to ftp, every day, to separated folders, where those file belongs. Im, complete newbie in scripting, I just got to know rclone and it's amazing what it can do. So I'm wondering is there any script to reclone to find out destination folder automatically for files to be uploaded, based on their names? More precisely based on the numbers in the file name:

Filenames 2nd and 3rd number are the same as destination folders last two digits, Destination folders are in different places, but under the same root folder.

Is there any way to ask rclone to check the 2nd and 3rd character of each files waiting to be uploaded, and based on that two numbers, upload it to the a directory where these two numbers are listed.

For example:

  • 50321_XXXXX.txt -----goes_to-----ftp:/xxxx/yyyy/zzzz/nn03/
  • 51124_XXXXX.txt -----goes_to-----ftp:/xxxx/wwww/kkkk/nn11/
  • 53413_XXXXX.txt -----goes_to-----ftp:/xxxx/dddd/aaaa/nn34/

Could you help me with where to go?

Thank you for your answers.

Nothing. I don't know where to start.

Barcud
  • 1
  • 1

0 Answers0