I have files in a folder, that i need to rename using a csv sheet.
Is it possible to send a csv file to a switch script element so that it can open it, parse? the data, and change filenames based on the data?
In the csv i have one column with a model name that i should compare to file names in the folder , and in the other there is the new name.
Since i am not very experienced in node, i am hoping i could get a starting point for this. I looked up https://www.npmjs.com/package/fast-csv but i am not sure if it's the right package.
Any help is appreciated.
Rename files using csv
- magnussandstrom
- Advanced member
- Posts: 365
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Rename files using csv
I'm guessing that you want to script this.. But in other case, I think it would be easy to do this in a flow with the free app Row2Variables.