We've got `set_mode`, but we should also have `mode` which returns `i32` (or some representation of the underlying permissions).