Rename files using csv

Post Reply
PdFUser5000
Member
Posts: 120
Joined: Fri Jun 12, 2020 11:23 am

Rename files using csv

Post by PdFUser5000 »

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.
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Rename files using csv

Post by magnussandstrom »

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.
Post Reply