Skip to main content

A wrapper for Window's Robocopy utility.

Project description

win-roboco-py

A thin python wrapper around Window's Robocopy utility.

This package is not intended to cover 100% of Robocopy's functionality. Instead, the focus of the package is allow you to easily take advantage of Robocopy's robustness for the most common operations.

Contributions

Pull requests or issue tickets are very welcome and appreciated.

Quick Usage

import win_roboco_py as robo

# Copies the file to the destination, with the same filename.
robo.copy_file(Path('./src/file.txt'), Path('./dst'))

# Copies the file to the destination, then deletes the source file.
robo.move_file(Path('./src/file.txt'), Path('./dst'))

# Copies all files to the destination.
robo.copy_directory(Path('./src'), Path('./dst'), recursive=True)

# Copies all files to the destination, then deletes the sources.
robo.move_directory(Path('./src'), Path('./dst'), recursive=False)

# Copies all files to the destination, and deletes extra files.
robo.mirror_directory(Path('./src'), Path('./dst'))

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

win_roboco_py-0.5.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

win_roboco_py-0.5.0-py3-none-any.whl (3.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