此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 函数
  • download_from_remote
  • get_protocol
  • resolve_path
  • upload_to_remote

filesystem_utils

最后更新
Python API: hubai_sdk.utils.filesystem_utils

函数

download_from_remote

Python
1def download_from_remote(url: str, dest: Path | str, max_files: int = -1) -> Path:
从远程存储桶下载文件。它可以下载单个文件、整个目录或目录中数量有限的文件。

get_protocol

Python
1def get_protocol(url: str) -> str:
返回 LuxonisFileSystem 协议。

resolve_path

Python
1def resolve_path(string: str, dest: Path) -> Path:
从远程下载文件,否则返回路径。

upload_to_remote

Python
1def upload_to_remote(local_path: Path | str, url: str, put_file_plugin: str | None = None):
将文件上传到远程存储桶。