# 文件系统 CLI

Python API: `luxonis_ml.utils.__main__`

## 函数

### delete

```python
def delete(url: str):
```

从远程存储中删除文件。

参数

 * `url` (`str`): 要删除的文件 URL。

### get

```python
def get(url: str, save_dir: Path | None = None):
```

从远程存储下载文件。

参数

 * `url` (`str`): 要下载的文件 URL。
 * `save_dir` (`Path | None`): 保存文件的目录。默认为当前工作目录。

### ls

```python
def ls(url: str, *, recursive: Annotated[bool, Parameter(alias='-r', negative=())] = False, typ: Annotated[Literal['file', 'directory', 'all'], Parameter(name=['--type', '-t'])] = 'all'):
```

列出远程目录中的文件。

参数

 * `url` (`str`): 要列出的目录 URL。
 * `recursive` (`Annotated[bool, Parameter(alias='-r', negative=())]`): 是否递归列出文件。
 * `typ` (`Annotated[Literal['file', 'directory', 'all'], Parameter(name=['--type', '-t'])]`): 要列出的文件类型。

### put

```python
def put(file: Path, url: str):
```

将文件上传到远程存储。

参数

 * `file` (`Path`): 要上传的文件的路径。
 * `url` (`str`): 文件的 URL。

## 属性

### app
