trumank / repak

Unreal Engine .pak file library and CLI in rust
Apache License 2.0
193 stars 26 forks source link

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

Open PhantomGamers opened 2 months ago

PhantomGamers commented 2 months ago

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.

shis0u commented 1 week ago

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