nndeploy.server.files

Functions

delete_file(file_path)

get_file_info(file_path)

get_workdir(server)

list_files([workdir])

parent_path_to_id(path[, root])

path_to_id(path)

upload_file(file_path[, file])

nndeploy.server.files.get_workdir(server) Path[源代码]
nndeploy.server.files.path_to_id(path: Path) str[源代码]
nndeploy.server.files.parent_path_to_id(path: Path, root: pathlib.Path | None = None) str[源代码]
async nndeploy.server.files.list_files(workdir: ~pathlib.Path = Depends(dependency=<function get_workdir>, use_cache=True, scope=None)) Dict[str, List[Dict[str, str]]][源代码]
async nndeploy.server.files.delete_file(file_path: str)[源代码]
async nndeploy.server.files.upload_file(file_path: str, file: UploadFile = File(PydanticUndefined))[源代码]
async nndeploy.server.files.get_file_info(file_path: str)[源代码]