def get_files(): drive = Drive() service = drive.setup_service(drive.setup_creds()) print("GETTIN FILES EXTENSION") fileExtension = drive.get_file_extension(service) print("DONE!") print("GETTING FILES FROM GOOGLE DRIVE") files = drive.get_data_api(service) print("DONE!") return files, fileExtension
def update_visibility_file(files): drive = Drive() service = drive.setup_service(drive.setup_creds()) drive.update_visibility(service, files)