Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,35 @@ A repo info in plain object is returned:
'last_modified': '2024-04-12T12:35:42+08:00'
}
```
### Upload a file

```python
repo.upload_file(dir_path, file_path)
```

Upload local files with file_path to the dir_path of a repo.

**Example:**

```python
repo.upload_file('/', '/files/test.txt')
```


### Download file

```python
repo.download_file(file_path, local_path)
```

A file in a specific path will be downloaded into local_path.

**Example:**

```python
repo.download_file('/test.txt', '/Users/test.txt')
```




Expand Down
Loading