drivendataorg / drivendataorg/cloudpathlib

Add a `sync_folder` method

Open
#14 4 comments 2 reactions 0 assignees View on GitHub
design decision enhancement
Dominant language
Python
Stars
628
Forks
88
Avg merge
17h 28m
Merged PRs (30d)
2

Description

We currently think it is a non-goal to _manage_ folder syncing behind the scenes, but we might want to explicitly support it as a method.

For example, something like:

```python
# I have a local folder that has many changes in it, including file deletions
local_changes = "/work_in_progress"

# copies cloud versions down to disk, but skips dl'ing where possible; deletes extra files locally
S3Path("s3://bucket/project_storage").sync_down(local_changes)

# copies local versions up to cloud, but skips ul'ing where possible; deletes extra files on the cloud
S3Path("s3://bucket/project_storage").sync_up(local_changes)

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.