# filesystem_utils

Python API: `hubai_sdk.utils.filesystem_utils`

## 函数

### download_from_remote

```python
def download_from_remote(url: str, dest: Path | str, max_files: int = -1) -> Path:
```

从远程存储桶下载文件。

它可以下载单个文件、整个目录或目录中数量有限的文件。

### get_protocol

```python
def get_protocol(url: str) -> str:
```

返回 LuxonisFileSystem 协议。

### resolve_path

```python
def resolve_path(string: str, dest: Path) -> Path:
```

从远程下载文件，否则返回路径。

### upload_to_remote

```python
def upload_to_remote(local_path: Path | str, url: str, put_file_plugin: str | None = None):
```

将文件上传到远程存储桶。
