Skip to main content

Copy files and merge directories using hard links.

Project description


This package provides a hardlink module and command line script that copies files and merges directories using hard links.

Why? Because OS X doesn’t support cp -lR.


Latest code direct from the repository:

$ pip install hardlink


Via the command line script:

$ hardlink -h
usage: hardlink [-h] [-d] [-f] [-q | -v] src dst

Copy files and merge directories using hard links.

positional arguments:
  src            Source file or directory. Follow symbolic links.
  dst            Destination file or directory. Merge existing directories.

optional arguments:
  -h, --help     show this help message and exit
  -d, --dry-run  Do not link files or create directories. Only log operations.
  -f, --force    Replace existing files and symbolic links.
  -q, --quiet    Silence standard output.
  -v, --verbose  Increase verbosity for each occurrence.

Via the module:

import hardlink
link = hardlink.Command(dry_run=False, force=True)
link(src, dst)

Project details

Download files

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

Files for hardlink, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size hardlink-0.2-py2.py3-none-any.whl (5.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page