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