没有项目描述
pycopier的Python项目详细描述
复印器
支持Python2.7/3.5及更高版本。如果你的python版本不能使用,请随意提交一个pr。欢迎使用prs!
基于python的多线程目录复制器。这是为了提供一种跨平台的多线程拷贝方式,类似于微软的robocopy。一些参数的实现类似于robocopy中同名的参数。(简单的robocopy调用可以通过用pycopier替换robocopy.exe来使用pycopier。)
安装
要安装,请向下克隆并在pycopier的顶部目录中运行:
python -m pip install .
或
python -m pip install pycopier
简单用法
安装后,您可以通过…
python -m pycopier SourceDir DestinationDir <optional params>
或
pycopier SourceDir DestinationDir <optional params>
扩展使用
____ ______ _
/ __ \__ __/ ____/___ ____ (_)__ _____
/ /_/ / / / / / / __ \/ __ \/ / _ \/ ___/
/ ____/ /_/ / /___/ /_/ / /_/ / / __/ /
/_/ \__, /\____/\____/ .___/_/\___/_/
/____/ /_/
... a Python replacement for Robocopy, including multithreaded copy.
optional arguments:
/h, //help show this help message and exit
Robocopy Arguments:
Arguments that more/less match Robocopy
Source Specifies the path to the source directory.
Destination Specifies the path to the destination directory.
/MT MT Creates multi-threaded copies with N threads. The default value
for N is 8
/create Creates a directory tree and zero-length files only.
/quit Quits after processing command line (to view parameters).
/purge Deletes destination files and directories that no longer exist
in the source.
/move Moves files and directories, and deletes them from the source
after they are copied.
/copyall Copies all file information.
/s Copies subdirectories. Note that this option excludes empty
directories. (robocopy's /e option for subdirectories including
empties is default for pycopier)
PyCopier Arguments:
Arguments that are specific to PyCopier
/quiet If set, be completely quiet during execution.
开发
所有的发展都发生在主分支(或从prs到master)上。一旦需要“发布”,版本等将在主分支中更新、标记并合并到发布分支。发布分支中不应该有任何尚未在主分支中的内容。
许可证
此项目通过麻省理工学院许可证提供