You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Actually it looks like I'm just missing a final test for os.path.exists in some cases. The code assumes that any filename returned by os.scandir points to an existing file.
This appears to primarily be an issue with
find_product_file
where it assumes that all files returned byos.scandir
exist. Butos.scandir
will list broken symbolic links.os.scandir
returns directory entries, it looks likeis_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.The text was updated successfully, but these errors were encountered: