Page 1 of 1

Rename files using csv

Posted: Thu Mar 24, 2022 9:25 am
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.

Re: Rename files using csv

Posted: Thu Mar 24, 2022 9:29 am
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.