r/learnpython • • May 31 '19

My first Python project: command line application that copies all files with given extension from a directory and its subfolders to another directory showing progress bar and remaining files counter.

This project was inspired by the task from Chapter 9 of Automate the Boring Stuff but I tried to push it a little bit further by adding a possibility of preservation source folder structure, log creation, progress bar, remaining files counter and command line interface.

Here is my code on GitHub.

I am new to programming and GitHub, so any feedback either on the code itself or design of README.md and so on is highly appreciated!

340 Upvotes

47 comments sorted by

View all comments

4

u/[deleted] May 31 '19

This was my first project too a while ago. Used it for moving old n64 and spectrum games from a CD to a USB drive for playing on my RetroPi :) .ZX files and such... I didnt go as far as to implement a progress bar though, I just printed each file and where it was going.

Well done and keep it up!

2

u/pltnk May 31 '19

Thank you! At first I printed a line for each copied file too but decided to hide this into a log since it prints lines so fast and you can't really read them in realtime anyway.

3

u/[deleted] May 31 '19

Good idea but i used mine mainly to see which, if any, file failed to transfer.

I need to start up with python properly again...