repak icon indicating copy to clipboard operation
repak copied to clipboard

[Bug] Error: Attempted to write to file which is outside of output directory

Open PhantomGamers opened this issue 1 year ago • 1 comments

When just running .\repak.exe unpack .\pakname.pak it returns the following error upon reaching the first file to unpack: Error: Attempted to write to "path/to/file.ext" which is outside of output directory

This also occurs when specifying an output directory manually, e.g.: .\repak.exe unpack -o out .\pakname.pak

But can be fixed by appending a slash to the directory name, e.g.: .\repak.exe unpack -o out/ .\pakname.pak

I was able to reproduce this behavior running repak on Windows.

PhantomGamers avatar Aug 31 '24 09:08 PhantomGamers

Same behavior for me on windows 11. Thank you for providing a temp. fix!

shis0u avatar Nov 06 '24 10:11 shis0u