Skip to content

Commit

Permalink
Fixed 'NotADirectoryError' caused by .ds_store file under macos (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: lizg <[email protected]>
  • Loading branch information
xxanswer and lizg authored Jan 16, 2025
1 parent 1724abc commit 7c4be36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesh-candidate_bestfit/map_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def get_map_dict(use_aug):
instance2pathlist = {}
root_dir = './element_pool'
for category in os.listdir(root_dir):
if category == '.DS_Store':
continue
category_dir = os.path.join(root_dir,category)
filelist = os.listdir(category_dir)
for filename in tqdm(filelist):
Expand Down

0 comments on commit 7c4be36

Please sign in to comment.