Three functions to copy/move files faster with Python
Project description
Three functions to copy/move files faster with Python:
Based on this answer: https://stackoverflow.com/a/28129677/15096247
pip install FastCopyFast
copyfile(src: str, dst: str, copystat: bool = True) -> bool
movefile(src: str, dst: str, copystat: bool = True) -> bool
copytree(
src: str, dst: str, ignore: Union[list, type(None)] = None, symlinks: bool = False
)
from FastCopyFast import copyfile,movefile,copytree
copyfile(r"F:\2020-12-02 15-35-25.mp4", r'c:\videoxxxxxxxxxxxx.mp4')
Out[3]: True
copyfile(r"F:\2020-12-02 15-35-25.mp4", r'c:\videoxxxxxxxxxxxx.mp4', copystat=False)
Out[4]: True
copyfile(r"F:\2020-12-02 15-35-25.mp4", r'c:\videoxxxxxxxxxxx2x.mp4', copystat=False)
Out[5]: True
movefile(r"C:\videoxxxxxxxxxxxx.mp4",r'c:\videoxxxxxxxxxxxxaaaaaa.mp4' , copystat=False)
Out[7]: True
movefile(r"c:\videoxxxxxxxxxxxxaaaaaa.mp4",r'c:\videoxxaavvvvbbbxxxxxxxxxxaaaaaa.mp4' , copystat=True)
Out[8]: True
copytree(r"F:\GUTENBERGNEU2", 'c:\\testcopytree', ignore=None,symlinks=False)
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
FastCopyFast-0.51.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file FastCopyFast-0.51.tar.gz
.
File metadata
- Download URL: FastCopyFast-0.51.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d57bba9d40cc5c93ffb3c02972d96e47db60745caf5004696c963052b801099 |
|
MD5 | d2c7d383ead068e17ccbf4c55b47538b |
|
BLAKE2b-256 | 9fdc39487676417bad0aee8892e6c3ac6703ff6ae83214267188f93f532ff701 |
Provenance
File details
Details for the file FastCopyFast-0.51-py3-none-any.whl
.
File metadata
- Download URL: FastCopyFast-0.51-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35291612fc6d15115db51846ba97ac5f7e53502e015abbcabdb535d947e26f9a |
|
MD5 | bd6c7112d0261dca8e62092737820d0c |
|
BLAKE2b-256 | 38f6f6c0ac365d0529070a92edd516ac0bb35c67b34651d8a15e14277b86fc10 |