I know I'm a bit late to this. Stubbing methods on `File` tends to be a bad idea. This is probably fine, just not sure this should be the default pattern to reach for.