Three functions to copy/move files faster with Python:
Based on this answer: https://stackoverflow.com/a/28129677/15096247
```python
pip install FastCopyFast
```
```python
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
)
```
```python
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/FastCopyFast",
"name": "FastCopyFast",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "copy,file,faster",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/7c/b4/5af9c4eab9146bb4026f6503fb0da6de4f6c8c4563bfce1bed71cb3cd074/FastCopyFast-0.52.tar.gz",
"platform": null,
"description": "\r\nThree functions to copy/move files faster with Python:\r\n\r\n\r\n\r\nBased on this answer: https://stackoverflow.com/a/28129677/15096247\r\n\r\n\r\n\r\n```python\r\n\r\npip install FastCopyFast\r\n\r\n```\r\n\r\n\r\n\r\n```python\r\n\r\ncopyfile(src: str, dst: str, copystat: bool = True) -> bool\r\n\r\n\r\n\r\nmovefile(src: str, dst: str, copystat: bool = True) -> bool\r\n\r\n\r\n\r\ncopytree( \r\n\r\nsrc: str, dst: str, ignore: Union[list, type(None)] = None, symlinks: bool = False \r\n\r\n)\r\n\r\n```\r\n\r\n\r\n\r\n```python\r\n\r\nfrom FastCopyFast import copyfile,movefile,copytree\r\n\r\n\r\n\r\ncopyfile(r\"F:\\2020-12-02 15-35-25.mp4\", r'c:\\videoxxxxxxxxxxxx.mp4')\r\n\r\nOut[3]: True\r\n\r\n\r\n\r\ncopyfile(r\"F:\\2020-12-02 15-35-25.mp4\", r'c:\\videoxxxxxxxxxxxx.mp4', copystat=False)\r\n\r\nOut[4]: True\r\n\r\n\r\n\r\ncopyfile(r\"F:\\2020-12-02 15-35-25.mp4\", r'c:\\videoxxxxxxxxxxx2x.mp4', copystat=False)\r\n\r\nOut[5]: True\r\n\r\n\r\n\r\nmovefile(r\"C:\\videoxxxxxxxxxxxx.mp4\",r'c:\\videoxxxxxxxxxxxxaaaaaa.mp4' , copystat=False)\r\n\r\nOut[7]: True\r\n\r\n\r\n\r\nmovefile(r\"c:\\videoxxxxxxxxxxxxaaaaaa.mp4\",r'c:\\videoxxaavvvvbbbxxxxxxxxxxaaaaaa.mp4' , copystat=True)\r\n\r\nOut[8]: True\r\n\r\n\r\n\r\ncopytree(r\"F:\\GUTENBERGNEU2\", 'c:\\\\testcopytree', ignore=None,symlinks=False)\r\n\r\n```\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Three functions to copy/move files faster with Python",
"version": "0.52",
"split_keywords": [
"copy",
"file",
"faster"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d746729f6c58d03925e168c95cae10d2b0a423836e8f4baf18281010000f7b64",
"md5": "a75f2d4f57295e1b2fcf83afc43da22d",
"sha256": "afcc07cf09bf1651d9e4be02f2b724d138407df84a9e8f0964ffa4246ec52fd3"
},
"downloads": -1,
"filename": "FastCopyFast-0.52-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a75f2d4f57295e1b2fcf83afc43da22d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5343,
"upload_time": "2023-04-06T06:26:43",
"upload_time_iso_8601": "2023-04-06T06:26:43.683375Z",
"url": "https://files.pythonhosted.org/packages/d7/46/729f6c58d03925e168c95cae10d2b0a423836e8f4baf18281010000f7b64/FastCopyFast-0.52-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7cb45af9c4eab9146bb4026f6503fb0da6de4f6c8c4563bfce1bed71cb3cd074",
"md5": "121dbaed436ba6ca5ef0fa0c22c114db",
"sha256": "5330b84aee7561bc3fdbe1e843c9b2c02b3d4c322025b06ebacd44fbe75a9dbd"
},
"downloads": -1,
"filename": "FastCopyFast-0.52.tar.gz",
"has_sig": false,
"md5_digest": "121dbaed436ba6ca5ef0fa0c22c114db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3858,
"upload_time": "2023-04-06T06:26:45",
"upload_time_iso_8601": "2023-04-06T06:26:45.751248Z",
"url": "https://files.pythonhosted.org/packages/7c/b4/5af9c4eab9146bb4026f6503fb0da6de4f6c8c4563bfce1bed71cb3cd074/FastCopyFast-0.52.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-06 06:26:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "FastCopyFast",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "fastcopyfast"
}