Skip to content
Sign upLog in
← Back to Community

how do I change file names in repl.it python?

Profile icon
rubpec2

I just need to translate over 200 file names to dutch and then download all of them, but idk anything about python and I don't know how to change file names, i've been trying to look for a library but idk how to make it work for replit, all of them do it on your pc.

Voters
Profile icon
Kishan294
Profile icon
rubpec2
Comments
hotnewtop
Profile icon
Bookie0

Maybe check this Geeks for geeks page out; using os.rename() you can rename files.

Or you can press the 3 dots on a file and press rename, but that would take a long time.

Screen Shot 2021-03-18 at 10.03.07 AM

Screen Shot 2021-03-18 at 10.03.31 AM

To download, press the 3 dots and click download as zip.
Screen Shot 2021-03-18 at 10.03.47 AM

Then in your downloads folder on your computer you'll have this:
Screen Shot 2021-03-18 at 10.04.42 AM

And when you open it you can rename the files there.
Screen Shot 2021-03-18 at 10.05.13 AM

To rename multiple files at once on mac, check this. On windows, check this.

Good luck! :D

Profile icon
RYANTADIPARTHI

maybe os module.

Profile icon
rubpec2

@RYANTADIPARTHI

how do i use it on repl.it?

Profile icon
RYANTADIPARTHI

@rubpec2
i'm not sure if the os will satisfy your requirement, but try it. Search os module in python in google, and learn about it.