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

26

u/ecgite May 31 '19

Nice work.

have you heard

pathlib
click
tqdm

If not, I think you could be interested.

11

u/pltnk May 31 '19

Thanks for suggestions!

I've never heard about tqdm yet and not familiar with pathlib, will check it.

I've read about click a little after finishing my program, looks like it is pretty handy but it is not in the Python standart library and I did not want to add a lot of dependencies for such a small project.

2

u/CBSmitty2010 Jun 05 '19 edited Jun 05 '19

EDIT: I realize post comment that I'd somehow started or commented in about 3 separate chains in this post on accident basically saying some form of the same thing. Gonna keep em up since they're written slightly different and may reach different people better.

Oh good lawd Sweet child learn you some Pathlib. It will make operations using filepaths MUCH easier and easier to write Windows & Linux compatible code.