Rev4397, Fix big file invalid path errors
This commit is contained in:
parent
77c3e43978
commit
224093b3dd
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue