Skip to content

Commit ac44fc4

Browse files
committed
Prevent pre-allocation for download resources
1 parent 668fe0c commit ac44fc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frameioclient/lib/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def _get_session(self):
4444

4545
def _create_file_stub(self):
4646
try:
47-
fp = open(self.destination, "wb")
48-
fp.write(b"\0" * self.file_size)
47+
fp = open(self.destination, "w")
48+
# fp.write(b"\0" * self.file_size) # Disabled to prevent pre-allocatation of disk space
4949
fp.close()
5050
except FileExistsError as e:
5151
print(e)

0 commit comments

Comments
 (0)