dont try to upload 0 size files
This commit is contained in:
parent
44bb8aed09
commit
d0a63dfaa6
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class Server(Resource):
|
||||||
if not info or 'error' in info:
|
if not info or 'error' in info:
|
||||||
continue
|
continue
|
||||||
path = self.media_path(oshash)
|
path = self.media_path(oshash)
|
||||||
if os.path.exists(path):
|
if os.path.exists(path) and os.stat(path).st_size > 0:
|
||||||
self.update_status(oshash, 'done')
|
self.update_status(oshash, 'done')
|
||||||
self.upload.put(oshash)
|
self.upload.put(oshash)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue