Skip to content

Commit bd932c3

Browse files
Change put_file loop condition to f1.tell (#870)
1 parent bdaf5aa commit bd932c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ def put_file(self, lpath, rpath, callback=_DEFAULT_CALLBACK, **kwargs):
809809

810810
self.mkdirs(self._parent(os.fspath(rpath)), exist_ok=True)
811811
with self.open(rpath, "wb", **kwargs) as f2:
812-
while f2.tell() < size:
812+
while f1.tell() < size:
813813
data = f1.read(self.blocksize)
814814
segment_len = f2.write(data)
815815
callback.relative_update(segment_len)

0 commit comments

Comments
 (0)