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:
|
if parent_id is not None:
|
||||||
file_metadata['parents'] = [parent_id]
|
file_metadata['parents'] = [parent_id]
|
||||||
|
|
||||||
if os.path.getsize(file_path):
|
if os.path.getsize(file_path) == 0:
|
||||||
media_body = MediaFileUpload(file_path,
|
media_body = MediaFileUpload(file_path,
|
||||||
mimetype=mime_type,
|
mimetype=mime_type,
|
||||||
resumable=False)
|
resumable=False)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue