update to new io::FileType enum

in accordance with https://github.com/rust-lang/rust/commit/3b9dfd6af04ca008a4c2ef13b7fd2e8433dc473f