📅  最后修改于: 2022-03-11 14:58:07.734000             🧑  作者: Mango
import 'dart:io' as io;
var syncPath = await path;
// for a file
io.File(syncPath).exists();
// for a directory
io.Directory(syncPath).exists();