refactor(session): simplify directory fsync handling

This commit is contained in:
chengyongru
2026-07-21 10:11:53 +08:00
committed by chengyongru
parent 4a79cbb6e7
commit afc65c086e
-1
View File
@@ -693,7 +693,6 @@ class SessionManager:
# reject directory fsync with EINVAL. # reject directory fsync with EINVAL.
with suppress(PermissionError): with suppress(PermissionError):
fd = os.open(str(path.parent), os.O_RDONLY) fd = os.open(str(path.parent), os.O_RDONLY)
try:
try: try:
os.fsync(fd) os.fsync(fd)
except OSError as exc: except OSError as exc: