xuan-luo/temp / utils /paths.py
xuan-luo's picture
download
raw
299 Bytes
"""Shared path helpers for DeltaKV."""
from __future__ import annotations
from pathlib import Path
DELTAKV_ROOT = Path(__file__).resolve().parents[1]
def resolve(path: str | Path) -> Path:
candidate = Path(path)
return candidate if candidate.is_absolute() else DELTAKV_ROOT / candidate

Xet Storage Details

Size:
299 Bytes
·
Xet hash:
95064e2d3ba75b01260c9601f87ea3fb3c791b882a3ab2e62e32cf272224210a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.