Hi there I have thousands of xml files and I read them through a python tool (incase there are zips in there, in that case the code unzips xml's and reads them too), but I'm receiving error on just a couple of files and the only difference of theirs is that their filenames are starting with double zeros (e.g. 00abc...-xyz-...-kml.xml)
I receive the following error (changed the path and filename for confidentiality reasons but the structure is the same);
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-6c05d55cfa3b> in <module>
2 files = []
3 for file in file_list:
----> 4 with open(file, "r", encoding="utf-8") as f:
5 xml = f.read()
6 if xml not in xmls:
FileNotFoundError: [Errno 2] No such file or directory: '\\\\ABC123\\main folder\\2023\\A\\AAA folder\\All files\\xml and zips\\xml files\\some spesific folder\\last spesific folder\\00123-8htM-Snee-f8PC-uYnTsMg3.xml'
Is there any idea what is the reason behind this error and how can I avoid it since I also need the exact filename that I use in the output of this workflow? Lots of thanks in advance, have a nice day everyone!