• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: renaming files with list of names that’s contains different strings

Resolved: renaming files with list of names that’s contains different strings

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I have a folder of images like this
I also have a list of names that I got from another folder with the same amount of files. Now I want to rename the images folder with new names using the names in the list.
the images are in folder ‘fake’ and the list was from the names in folder ‘new’ and ‘nw’ is where I want the renamed images to be.
This is the output

Answer:

Try this:

If you have better answer, please add a comment about this, thank you!

file python string
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Why doesn’t stringstream consume output during hex formatting?

24/03/2023

Resolved: CMake path for python3 libraries doesn’t change (windows 10)

24/03/2023

Resolved: GLMM with quasi-Poisson distribution

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.