|
|
@ -207,9 +207,10 @@ def backupCalibreDbAndOptionalDownload(drive, f=None):
|
|
|
|
if f:
|
|
|
|
if f:
|
|
|
|
databaseFile.GetContentFile(f)
|
|
|
|
databaseFile.GetContentFile(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def copyToDrive(drive, uploadFile, createRoot, replaceFiles,
|
|
|
|
def copyToDrive(drive, uploadFile, createRoot, replaceFiles,
|
|
|
|
ignoreFiles=[],
|
|
|
|
ignoreFiles=[],
|
|
|
|
parent=None, prevDir=''):
|
|
|
|
parent=None, prevDir=''):
|
|
|
|
if not drive:
|
|
|
|
if not drive:
|
|
|
|
drive=getDrive()
|
|
|
|
drive=getDrive()
|
|
|
|
if drive.auth.access_token_expired:
|
|
|
|
if drive.auth.access_token_expired:
|
|
|
|