I’m trying to open a file from a device (iPhone) to get its EXIF.
The path to file looks as:
"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}::{55DE1ED1-3F3E-4C88-BC1A-819EFF0BE330}73cdac9ad5200bebf6ab95998c1bed571f70fd23PhotoLibraryphoto_library.album.all_assetsA2FD049A03544E90B70243069CB28014.JPG"
But I get an exception:
AssertionError: [Errno 2] No such file or directory
There are no problems with the file located on the local disk, it has a normal path D:image.jpg
I also can open file in Windows Explorer by this path:
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}::{55DE1ED1-3F3E-4C88-BC1A-819EFF0BE330}73cdac9ad5200bebf6ab95998c1bed571f70fd23PhotoLibraryphoto_library.album.all_assetsA2FD049A03544E90B70243069CB28014.JPG
I think exception happens in this file:
venvLibsite-packagesPILImage.py
in function:
fp = builtins.open(filename, "rb")
Are there any ways to open a file with Windows Shell Namespace?
Sergey Shabalin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.