Skip to main content

Copy all files with given extension from a directory and its subfolders to another directory.

Project description

Selective Copy

Simple 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.
Allows to preserve a source folder structure and to create a log if necessary.
Opens a filedialog if source and/or destination are not given in the command line.
Creates folders in a destination path if they don't exist.

Usage: slcp ext [-s SRC] [-d DST] [-sc | -dc] [-p] [-l] [-h]

Positional arguments:
ext                     Extension of the files to copy, enter without a dot.

Optional arguments:
-s SRC, --source SRC    Source folder path.
-d DST, --dest DST      Destination folder path.
-sc, --srccwd           Use current working directory as a source folder.
-dc, --dstcwd           Use current working directory as a destination folder.
-p, --preserve          Preserve source folder structure.
-l, --log               Create and save log to the destination folder.
-h, --help              Show this help message and exit.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Inspired by the task from Chapter 9 of Automate the Boring Stuff.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slcp-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

slcp-0.1.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page