← Về thư mục
openai4s/server/file_area.py
- FileAreaError · class · L32-L38 — class FileAreaError(Exception)
- init · method · L35-L38 — def init(self, status: int, message: str, code: str = "file_area")
- FileArea · class · L41-L325 — class FileArea
- init · method · L44-L75 — def init( self, roots: list[Path], *, policies: "list[tuple[Path, bool]] | None" = None, )
- configured · method · L78-L79 — def configured(self) -> bool
- _require_configured · method · L83-L89 — def _require_configured(self) -> None
- root_of · method · L91-L98 — def root_of(self, candidate: Path) -> Path | None
- is_writable_root · method · L100-L101 — def is_writable_root(self, root: Path) -> bool
- personal_area_owner · method · L104-L118 — def personal_area_owner(root: Path, candidate: Path) -> str | None
- resolve · method · L120-L150 — def resolve(self, raw: str, *, reader: str | None = None) -> Path
- _scoped_upload_dir · method · L152-L209 — def _scoped_upload_dir(self, directory: str, owner: str) -> str
- resolve_upload_target · method · L211-L250 — def resolve_upload_target( self, directory: str, name: str, *, owner: str | None = None ) -> Path
- list_roots · method · L254-L271 — def list_roots(self) -> dict
- list_dir · method · L273-L319 — def list_dir( self, raw: str, *, limit: int = 2000, reader: str | None = None ) -> dict
- resolve_download · method · L321-L325 — def resolve_download(self, raw: str, *, reader: str | None = None) -> Path