You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Holger Schauer 92d9711200 Fix up setup.py to match move of README file. 9 months ago
hs.mediacopy Fix up setup.py to match move of README file. 9 months ago
.gitignore gitignore: Add .bak and man. 3 years ago
README.md Move README one directory up. 2 years ago

README.md

Introduction

mediacopy is a small python package intended to copy media files (i.e. images, ...) from some source to some destination. It differs from a simple copy operation in that it tries hard not to copy media a second time.

Usage

mediacopy consists of two simple shell utilities, mediacp.py and mediascan.py. The first does the actual copying of media files while the latter serves as a utility to (re-)scan a given directory of already existing files at some destination.

mediacp.py has the following synopsis:

Usage: mediacp.py [options] sourcedir destinationdir

Options:
  -h, --help            show this help message and exit
  -D DATABASE, --database=DATABASE
                        location (path without filename) of database
  -f, --force           force overwrite
  -n, --noaction        don't perform the action
  -u, --unknown         copy unknown filetypes as well
  -v, --verbose         verbose logging

As you can see, mediacp.py expects a source directory which it will recurse into and a destination directory to copy the media files to.

mediascan.py has the following synopsis:

Usage: mediascan.py [options] sourcedir

Options:
  -h, --help      show this help message and exit
  -D DATABASE, --database=DATABASE
                        location (path without filename) of database
  -n, --nowrite   don't write database
  -v, --verbose   verbose logging

mediascan will scan the mediafiles in sourcedir and record metadata abouth them into a database with the name mediacp.db in sourcedir.

Installation

mediacopy comes as a python package, which means that it is intended to be installed via easy_install or pip. However, as of today, mediacopy is not distributed via pypi.python.org.