INNER CODE UNIT · Python
dir_path
DataTalksClub/datatalksclub.github.io · scripts/add_dateadded_from_git.py:221
dir_path = project_root / args.all_in_dir
if not dir_path.exists():
print(f"Error: Directory not found: {args.all_in_dir}", file=sys.stderr)
sys.exit(1)
files = sorted(dir_path.glob('*.md'))
else:
# From command line arguments
for podcast_file in args.podcast_files:
file_path = resolve_podcast_path(podcast_file)
if file_path:
files.append(file_path)
else:
print(f"Error: File not found: {podcast_file}", file=sys.stderr)
sys.exit(1)