AnnasBlackHat's picture
semi final
5d3f355
raw
history blame contribute delete
309 Bytes
import gdown
import os
def gdrive(id, dir = "."):
filename = gdown.download(id=id, quiet=True)
file_path = f'{dir}/{filename}'
if os.path.isdir(dir) == False: os.mkdir(dir)
try:
os.replace(filename, file_path)
except:
print('replace err...')
return file_path