文件系统 CLI
最后更新
luxonis_ml.utils.__main__函数
delete
Python
1def delete(url: str):url(str): 要删除的文件 URL。
get
Python
1def get(url: str, save_dir: Path | None = None):url(str): 要下载的文件 URL。save_dir(Path | None): 保存文件的目录。默认为当前工作目录。
ls
Python
1def 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
1def put(file: Path, url: str):file(Path): 要上传的文件的路径。url(str): 文件的 URL。