| from data1734510768 import video_ids | |
| import os | |
| def check_file_contains_name(path, target_name): | |
| for file_name in os.listdir(path): | |
| if target_name in file_name: | |
| return True | |
| return False | |
| # 示例使用 | |
| path = "/mnt/afs/niuyazhe/data/crawl/reaction_video/0--1" | |
| count = 0 | |
| for id in video_ids: | |
| if not check_file_contains_name(path, id): | |
| print(f"No File: {id}") | |
| count += 1 | |
| print(count) |