获取临时目录路径
static Future<String> getTemporaryDirectoryPath() async { final Directory tempDir = await getTemporaryDirectory(); return tempDir.path; }