Rev4397, Fix big file invalid path errors

This commit is contained in:
shortcutme 2020-01-09 16:35:05 +01:00
parent 77c3e43978
commit 224093b3dd
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ class SiteStoragePlugin(object):
def createSparseFile(self, inner_path, size, sha512=None):
file_path = self.getPath(inner_path)
self.ensureDir(os.path.dirname(file_path))
self.ensureDir(os.path.dirname(inner_path))
f = open(file_path, 'wb')
f.truncate(min(1024 * 1024 * 5, size)) # Only pre-allocate up to 5MB

View File

@ -13,7 +13,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.7.1"
self.rev = 4394
self.rev = 4397
self.argv = argv
self.action = None
self.test_parser = None