From 5600eb3a992c0cc393af9f1a67351048d6b8b514 Mon Sep 17 00:00:00 2001 From: Libby Date: Thu, 12 Nov 2026 23:06:29 +0000 Subject: [PATCH] cultcache-py: the replace docstring says absence to a reader is rare on NTFS, not impossible Co-Authored-By: Claude Sonnet 5.5 --- packages/cultcache-py/src/cultcache_py/stores.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cultcache-py/src/cultcache_py/stores.py b/packages/cultcache-py/src/cultcache_py/stores.py index 49500aff..ba4c703d 100644 --- a/packages/cultcache-py/src/cultcache_py/stores.py +++ b/packages/cultcache-py/src/cultcache_py/stores.py @@ -365,7 +365,8 @@ class ReplaceKernel: def _replace_store(staged: str | os.PathLike[str], destination: str | os.PathLike[str]) -> None: """Replaces `destination` with `staged`: POSIX-semantics rename first on Windows (so a reader holding the store open - never sees it absent), os.replace elsewhere.""" + keeps it and rarely sees it absent; a stalled rename can still leave it absent for 5-47 ms on NTFS, + variants:ruling:posix-rename-absent-window-document), os.replace elsewhere.""" if sys.platform == "win32": replace_store_windows(os.fspath(staged), os.fspath(destination), WindowsReplaceKernel()) else: