System25 / drxtract

Macromedia Director 5 DRI and DRX files data extractor
GNU General Public License v2.0
22 stars 4 forks source link

IOError: [Errno 22] invalid mode ('wb') or filename: u'010m\\bin\\3.KEY*' #4

Closed TanatOSz closed 4 years ago

TanatOSz commented 4 years ago
D:\drxtract>drxtract mac facep.dir facep
Traceback (most recent call last):
  File "D:\drxtract\riffxtract.py", line 329, in <module>
    parse_riff(fileContent, rifx_offset)
  File "D:\drxtract\riffxtract.py", line 246, in parse_riff
    parse_mmap(block_data, fileContent, offset)
  File "D:\drxtract\riffxtract.py", line 161, in parse_mmap
    with open(os.path.join(sys.argv[3], BINDIR, file_name), 'wb') as file:
IOError: [Errno 22] invalid mode ('wb') or filename: u'facep\\bin\\3.KEY*'
ERROR:root:Can not find a VWLB file!
ERROR:root:Can not find a KEY* file!
ERROR:root:Can not find a VWSC file!

FACEP.ZIP

System25 commented 4 years ago

It seems that Windows does not support "*" in the file name, and a "3.KEY" file can not be created on Windows. There are some files that have "" or spaces in the file extension. In Linux there is no problem with that by I suppose that Windows won't allow it.

I'll check the code to try to remove those characters from the file extensions.

Best regards!

System25 commented 4 years ago

OK. Just checked Windows OS compatibilty. Now it may work. But keep in mind that this project is a WIP. Now I'm working of extracting images with different color maps, so no image extraction at this moment. Best regards!

TanatOSz commented 4 years ago

Thanks.