mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Flush more buffers when getting etag
This commit is contained in:
parent
6d91c95b30
commit
2831e17ae1
1 changed files with 1 additions and 0 deletions
|
|
@ -240,6 +240,7 @@ def get_etag_from_file(fpath):
|
|||
|
||||
def get_etag_from_fileobject(f):
|
||||
f.flush()
|
||||
os.fsync(f.fileno())
|
||||
return get_etag_from_file(f.name)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue