tehskai / godot-unpacker

godot .pck unpacker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File paths have trailing \x00s

tankorsmash opened this issue · comments

with open(os.path.join(path, file_name_full), "w+b") as p:

Not sure what the cause is, but I had several \x00's at the end of my paths and adding an rstrip allowed me to unpack properly:

 file_name_full.rstrip('\x00')

Same. I used with open(os.path.join(path, file_name_full.rstrip("\0")), "w+b") as p:.

Please fix this.