DEV Community

Discussion on: Automate boring files organizing using python (Python files organizer)

Collapse
justplayerde profile image
Justin K.

I would recommend to also loop over the keys and decide there instead of creating an if statement for every Directory.

that way it can be extended without touching more then neccessary :)
(and the code is shorter)

Collapse
xbudy profile image
Budy mnvenom Author

Yes good idea thanks

Some comments have been hidden by the post's author - find out more