Added the custom File.ftype method and tests.