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

1

u/wildbk33 Jun 04 '19

anyone else getting an error?

usage: [-h] [-s SOURCE] [-d DEST] [-p] [-l] ext

: error: the following arguments are required: ext

An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

1

u/pltnk Jun 04 '19

You have to at least specify an extension of the files to copy.

How exactly do you run the program? It's designed to be executed from command line. However, you can run it from your IDE as well but in that case you have to set all neccessary arguments in the Run Configuration at first.

1

u/wildbk33 Jun 04 '19

oh, that makes sense, i just ran it from within my IDE(spyder)