gdrive.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:LetItRain-475-2161_Good_Rodgers 作者: ForensicTools 项目源码 文件源码
def auth():
    gauth = GoogleAuth()
    gauth.LoadCredentialsFile("letitrain-creds-gdrive.txt")
    if gauth.credentials is None:
        gauth.LocalWebserverAuth()
    elif gauth.access_token_expired:
        gauth.Refresh()
    else:
        gauth.Authorize()
    gauth.SaveCredentialsFile("letitrain-creds-gdrive.txt")
    httpauth = gauth.Get_Http_Object()
    service = discovery.build('drive', 'v3', http=httpauth)
    return gauth, httpauth, service

# Retrieves the information about every file
# Can either do deleted or regular files
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号