dont try to upload 0 size files

This commit is contained in:
j 2014-04-02 19:41:11 +02:00
parent 44bb8aed09
commit d0a63dfaa6

View file

@ -140,7 +140,7 @@ class Server(Resource):
if not info or 'error' in info:
continue
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.upload.put(oshash)
continue