If the filename use spaces then use quotes surrounding the filename, example:
py splitNSP.py "File with space on his name.nsp"
If it not work you can remove the spaces renaming the nsp.
========== NSP Splitter ==========
Traceback (most recent call last):
File "C:\Users\***\splitNSP.py", line 143, in <module>
main()
File "C:\Users\***\splitNSP.py", line 140, in main
splitCopy(filepath)
File "C:\Users\***\splitNSP.py", line 79, in splitCopy
info = shutil.disk_usage(os.path.dirname(filepath))
File "C:\Users\***\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 1028, in disk_usage
total, free = nt._getdiskusage(path)
FileNotFoundError: [WinError 3] The system cannot find the path specified
Seems that script aren't ready to allow spaces on the file paths:
I'm not the author of this tool, the paths with spaces should be fixed by him
- Create a folder on C:// called nsps, then move the python script and the nsp file to this folder
- Rename the nsp file, sustitute spaces with another character, _ for example
- Open cmd and run: cd C://nsps
- Then run the script: py splitNSP.py my_nsp_file.nsp
Tried moving the script and nsp file to the c drive in a path without spaces as well as changed the nsp filename to match, but I still get the same error.
Can you try using the full path to the NSP? I didn't test it on Windows but the command should be available for both Unix and Windows. if it works when you provide the full path then I'll know what's wrong and can put up a revised version.I can see there's actually a similar error being reported, but let me throw my documented error on here anyway so we can try and debug it. So I downloaded python 3.7 and installed it, then since it didn't modify my path variable I just manually call the full path of python 3.7. Here's what happens:
View attachment 146012
Any ideas?
Edit: I'm on Windows 7 if that matters. The homebrew directory is on a 1TB usb drive that I've used for the past few years.
I was wondering the same.When you say "change the archive bit" does opening the folder properties with Alt+Enter, clicking "Advanced" and then ticking the "Folder is ready for archiving" option achieve what you are aiming for? Also, when it prompts me to apply that to the files under said directory should I do so or leave the flag unchanged for them?
Edit: Program finished with "NSP successfully split!" Quick question however: When you say "change the archive bit" does opening the folder properties with Alt+Enter, clicking "Advanced" and then ticking the "Folder is ready for archiving" option achieve what you are aiming for? Also, when it prompts me to apply that to the files under said directory should I do so or leave the flag unchanged for them?
Correct, that is what setting the archive flag on the folder means. Only the folder needs the flag, files inside don't need it.Using full quoted filenames for all of them got it to start properly, as it's saying that it's "calculating number of splits..." and "splitting NSP into 3 parts...". It'll probably be a while, but I think I'm on the right track. Did not try the newest revision, was the absolute path bit all you changed?
Edit: Program finished with "NSP successfully split!" Quick question however: When you say "change the archive bit" does opening the folder properties with Alt+Enter, clicking "Advanced" and then ticking the "Folder is ready for archiving" option achieve what you are aiming for? Also, when it prompts me to apply that to the files under said directory should I do so or leave the flag unchanged for them?
Yes.are they supposed to be called 00, 01 etc with no file extension?
See above.Fantastic tool, thank you very much!
I was wondering the same.
Once the folder is made and the archive flag is set
Yes. Setting the archive flag needs admin privileges (meaning you'd need to run the script as admin) plus there's no one python command that sets the archive flag on both Windows and Unix (it would need to detect which you are using and import / use different functions for each) and lastly, on some OS's like macOS even if you set the archive flag on the folder the flag is erased when copied to a FAT32 partition. I don't feel like adding a feature that only works on some operating systems and not others.Any reason why this isn't done by the script itself?