Programmatically working with the filesystem is such a pain. It's like playing 20 Questions for every tiny thing, and you end up with 10 lines of error handling for every line of useful code.
Okay, I just want to move this file from here to there...
"What if the destination already exists?"
Then delete it.
"What if you don't have permissions to delete it?"
Change the permissions.
"What if that fails?"
Geez, I dunno - write an entry to the log?
"But this IS the logging component!"
#MotherMayI #programming
