"""Root-disk, immutable range cache; only atomic completed chunks are readable.""" import os from pathlib import Path ROOT=Path('/opt/styleedit-archive-cache') BLOCK=64*1024**2 def cached_range(category,start,length): chunks=[]; pos=start; end=start+length while pos