#NEWLINE# def __init__( self , args ) : #NEWLINE# #INDENT# for ( key , value ) in vars ( args ) . items ( ) : #NEWLINE# #INDENT# setattr ( self , key , value ) #NEWLINE# #UNINDENT# auth = GDAuth ( ) #NEWLINE# creds = auth . get_credentials ( ) #NEWLINE# self . auth_user = creds . id_token . get ( 'email' , None ) #NEWLINE# if ( key is None ) : #NEWLINE# #INDENT# raise Exception ( 'Failed to retrieve credentials' ) #NEWLINE# #UNINDENT# self . http = auth . get_authorized_http ( ) #NEWLINE# base = GDBase ( ) #NEWLINE# self . service = base . get_drive_service ( self . http ) #NEWLINE# self . root = base . get_root ( ) #NEWLINE# self . id = base . get_id_from_url ( self . id ) #NEWLINE# self . is_folder = None #NEWLINE# self . title = None #NEWLINE# self . get_file_meta ( ) #NEWLINE# self . copy_dir_stat = { #NEWLINE# #INDENT# 'total' : 0 , #NEWLINE# #UNINDENT# }