-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Extracting single file - access denied #101
Comments
Hi, Thank you for this well written bug report. (And debugging the issue for me) I think I was too ambitious with the the extract command making it too versatile. Resulting in weird bugs.
You are make a good point. I'll consider making more explicit commands instead of just fixing the uncaught exception. |
I built from commit 17b4091 on the bugfix-101-fs-extraction-issues branch and these are the new results. Providing an output directory
Providing an output directory and output filename
|
Hi, i have the same problem when extracting a single file from a nsp. Which branch or PR have the modified code that i can test please? I only want to get cmnt.nca and the nca that contain the game icon by the way |
Also encountering this one, I'll try that branch. |
Building with Visual Studio is broken as well. |
Version: 1.7.0
Built: 15:09:37 Jan 21 2023
OS: Windows 11
I thoroughly read the documentation about extracting files. I am unable to extract single files from any archive without editing your source code. Even when the program absolutely has write access to the given directory an access is denied error is thrown. This line in FsProcess.cpp is the culprit. I commented out this line and the first try/catch and the file was extracted successfully.
nstool/src/FsProcess.cpp
Line 151 in 7abcedb
nstool/src/FsProcess.cpp
Lines 121 to 135 in 7abcedb
This means we need to clarify and separate some parameters so we can rely on separate functions instead of one big function.
Perhaps:
Confirming this is a valid file
Extracting all files is successful
Extracting a single file fails
The text was updated successfully, but these errors were encountered: