Fix up after f7960a7dfe
This commit is contained in:
parent
826ab1d6f5
commit
7b5375fd21
|
|
@ -105,7 +105,7 @@ class GoogleDriveHelper:
|
|||
if parent_id is not None:
|
||||
file_metadata['parents'] = [parent_id]
|
||||
|
||||
if os.path.getsize(file_path):
|
||||
if os.path.getsize(file_path) == 0:
|
||||
media_body = MediaFileUpload(file_path,
|
||||
mimetype=mime_type,
|
||||
resumable=False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue