Adapt to io::FileType and do a cargo update