refactor(session): simplify directory fsync handling
This commit is contained in:
@@ -693,7 +693,6 @@ class SessionManager:
|
||||
# reject directory fsync with EINVAL.
|
||||
with suppress(PermissionError):
|
||||
fd = os.open(str(path.parent), os.O_RDONLY)
|
||||
try:
|
||||
try:
|
||||
os.fsync(fd)
|
||||
except OSError as exc:
|
||||
|
||||
Reference in New Issue
Block a user