Commit 5183afc6 by rfkelly0

tweak dokan file truncating

parent 1e276505
......@@ -512,8 +512,10 @@ class FSOperations(object):
lock.acquire()
try:
pos = file.tell()
if length != pos:
file.seek(length)
file.truncate()
if pos < length:
file.seek(min(pos,length))
finally:
lock.release()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment