filesync-0.1.3
توضیحات
A file sync lib
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | filesync-0.1.3 |
| نام | filesync |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gregor Roth |
| ایمیل نویسنده | gregor.roth@web.de |
| آدرس صفحه اصلی | https://github.com/grro/filesync |
| آدرس اینترنتی | https://pypi.org/project/filesync/ |
| مجوز | MIT |
# filesync
A file sync tool to sync local files using webdav
To install this software you may use the [PIP](https://realpython.com/what-is-pip/) package manager such as shown below
```
sudo pip install filesync
```
Use *sync_folder* as shown below to copy local files to cloud or visa verse
```
from filesync.filesync import sync_folder
cloud_uri="https://myuser:mypassword@webdav.cloud.."
local = "/media/data"
###############
# sync from cloud
print("** sync cloud homevideo -> local homevideo **")
sync_folder(cloud + '/homevideo', local + '/homevideo', ignore_patterns=['*/~*'])
print("** sync cloud family -> local family **")
sync_folder(cloud + '/family', local + '/family', ignore_patterns=['*/~*'])
###############
# sync to cloud
print("** sync local homevideo -> cloud homevideo **")
sync_folder(local + '/homevideo', cloud + '/homevideo', ignore_patterns=['*/~*'])
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.1.1 | dateparser |
| ==3.14.5 | webdavclient3 |
| >=2.27.1 | requests |
نحوه نصب
نصب پکیج whl filesync-0.1.3:
pip install filesync-0.1.3.whl
نصب پکیج tar.gz filesync-0.1.3:
pip install filesync-0.1.3.tar.gz