Skip to main content

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)

Metadata

Release files for FastCopyFast 0.52

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FastCopyFast 0.52
File Size Uploaded
FastCopyFast-0.52.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FastCopyFast 0.52
File Interpreter ABI Platform
FastCopyFast-0.52-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / FastCopyFast-0.52.tar.gz

Download URL FastCopyFast-0.52.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5330b84aee7561bc3fdbe1e843c9b2c02b3d4c322025b06ebacd44fbe75a9dbd
BLAKE2b-256 checksum
How to use checksums
7cb45af9c4eab9146bb4026f6503fb0da6de4f6c8c4563bfce1bed71cb3cd074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / FastCopyFast-0.52-py3-none-any.whl

Download URL FastCopyFast-0.52-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afcc07cf09bf1651d9e4be02f2b724d138407df84a9e8f0964ffa4246ec52fd3
BLAKE2b-256 checksum
How to use checksums
d746729f6c58d03925e168c95cae10d2b0a423836e8f4baf18281010000f7b64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.52 This release

2 release files

0.51

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page