title: How to take all files from a folder as input (one at a time) and save them into another folder after processing?
body: <p>I have a <code>.py</code> script which takes one <code>.csv</code> at a time and pre-process it. I am running the bash command in this way:</p>
  <p><code>python3 cleaning_script.py file1.csv results_file1.csv</code>. It works completely fine. There are 300+ files in a folder which I have to pre-process, is there a better way (Loop maybe, but I don't know how to use loop in this environment) in which I can mention the folder and each file is taken as input from the source folder and pre-processed files is saved in the destination folder?</p>
  <p>Because of the non-administrative rights in the system (Windows 10), I am using Rstudio terminal to execute my bash command.</p>