批量删除桶内对象 (file_path) if not folder: os.makedirs(file_path) if not os.path.exists(log_file): pathlib.Path(log_file).touch() set_logger(loglevelswitch.get(loglevel, logging.ERROR), log_file, name=str(os.getpid())) bucket_empty.py #-*-coding:utf-8 -*- from boto3