Skip to content

Commit

Permalink
Added "and not d.is_symlink()"
Browse files Browse the repository at this point in the history
Signed-off-by: Shintaro Sakoda <[email protected]>
  • Loading branch information
SakodaShintaro committed Feb 28, 2025
1 parent e14d8dc commit 40f6e42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def process_directory(directory: Path, topic_subject: str, topic_reference: str)
topic_subject = args.topic_subject
topic_reference = args.topic_reference

directories = sorted([d for d in args.result_dir.iterdir() if d.is_dir()])
directories = sorted([d for d in args.result_dir.iterdir() if d.is_dir() and not d.is_symlink()])

with Pool(args.parallel_num) as pool:
pool.starmap(
Expand Down

0 comments on commit 40f6e42

Please sign in to comment.