Skip to content

product access should check for broken symbolic links #54

@joefutrelle

Description

@joefutrelle

This appears to primarily be an issue with find_product_file where it assumes that all files returned by os.scandir exist. But os.scandir will list broken symbolic links.

os.scandir returns directory entries, it looks like is_file can be used to determine if a symbolic link is broken.

The desired behavior is to raise a KeyError if the product file is a broken symbolic link, just as if no existing file is found.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions