def __init__(self, maxdepth=1000000, verbose=False, stats_only=False): secrets_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'client_secrets.json') credentials_path = os.path.join( os.path.dirname(os.path.dirname(__file__)), 'credentials.json') self.drive_auth = DriveServiceAuth(secrets_path, credentials_path) self.drive_service = None self.depth = 0 self.root_path = None self.maxdepth = maxdepth self.verbose = verbose self.stats_only = stats_only self.stats_file = None self.file_list = [] print('GDriveDownloader maxdepth %d, verbose %r' % (maxdepth, verbose))