Python Path is great. Until it isn't.
Don't try this at home.
remotePath = Path("data", "stuff")
pbexec("ssh", HOST, "rm", "-rf", remotePath / "/*")
The result is disastrous, as it it is:
ssh homeserver rm -rf /*
Not run as root, the server's installed software was not accessible, but it proceeded to my home directory before I could stop it and made a mess of it. Luckily nothing terminally lost.
It should have been remotePath / "*" or, even saner, just remotePath.
![Screenshot of Fortune article dated October 18, 2024, showing that the CEO of Amazon Web Services "bluntly told colleagues that if they don't like the controversial [forced return to office] policy, they should leave".](https://files.mastodon.social/cache/media_attachments/files/115/407/658/472/770/612/small/98add5653a1ccbab.png)