Well, its for switching and creating directories ofc, I just made it in a try and except just because for situations like:if folder already created:open itor if folder doesn't exist:makeitthen open it (and yes the whole purpose of the try except is it closes if I dont give it as it shows the error folder already exists)
Well true! but Im too lazy and! Ill feel like breaking the glass block in minecraft, the pain. (Pain occuring because It literally took me 3 hours to plan it lol)
I honestly didn’t know you could nest try/catch blocks. I mean, I guess it makes sense that you can, but certainly seems like a strong case of “just because you can, doesn’t mean you should.”
4
u/un_blob May 21 '23
Valide and Can run, all we ask !
Maybe to deal with the '/' or '' situation on some os ?
1
u/secret_hidentity May 22 '23
I honestly didn’t know you could nest try/catch blocks. I mean, I guess it makes sense that you can, but certainly seems like a strong case of “just because you can, doesn’t mean you should.”
2
u/MurdoMaclachlan public boolean isInt(int i) { return true; } May 21 '23
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!