文件是否是Word
static bool isWord(String filePath) { final ext = filePath.toLowerCase(); return ext.endsWith(".doc") || ext.endsWith(".docx"); }