Convert a use of stat with sys::fs::status.