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 details)

Uploaded Source

Built Distribution

win_roboco_py-0.5.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file win_roboco_py-0.5.0.tar.gz.

File metadata

  • Download URL: win_roboco_py-0.5.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for win_roboco_py-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5eb194c041043748460c2f9964a5fba0468f1f352be083c40a99882f5f5ae27d
MD5 7752954c7d81d5a3cadc389d0133aa42
BLAKE2b-256 34fc40f68572726e709533d71e5285cee38350932b4ac40335ddc1674c64a7d6

See more details on using hashes here.

File details

Details for the file win_roboco_py-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for win_roboco_py-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f31964067ea65ea17971d839803dcabc35059cabe67bff3d3379fd36891f7a63
MD5 904718346e717e8b299b1b86ecd9f51a
BLAKE2b-256 f0202ee532ef84ea937c89c0cf6b689494dd232363c621404f7ce0218f597c03

See more details on using hashes here.

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