eliboa / NxNandManager

Nintendo Switch NAND management tool : explore, backup, restore, mount, resize, create emunand, etc. (Windows)
GNU General Public License v2.0
787 stars 75 forks source link

Try to fix extractFS when saves have nested dirs #115

Closed gregoo closed 4 months ago

gregoo commented 1 year ago

A stab at fixing "Failed to open file for writing". What seem to happen is that QFile::open is used on a non existing folder and such fails.

This adds an extra step ensuring that the whole path to the extracted file is created before opening it.

(Also I'm in no way a C++ developer and I have no clue what side effects it may have produced)

(Note: also discussed this here: https://github.com/eliboa/NxNandManager/issues/100#issuecomment-1343302780)