获取文件类型
static String getFileType(String path) { List<String> array = path.split('.'); return array[array.length - 1]; }