You're right, I mostly copied the `stat` command. I probably should fix that one (and the rest of the `fs.*` bunch) too…

Could you point me to a slave command that "does the right thing"? I'd like to follow existing conventions with error messages and exception handling. (The same goes for the `except` in the next block.)