Dir.isRoot

The effective user permissions, so running with sudo or doas counts as well

struct Dir
const
bool isRoot;