📌  相关文章
📜  如果目录存在flutter - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:05.596000             🧑  作者: Mango

代码示例1
String path = 'your/path';
bool directoryExists = await Directory(path).exists();
bool fileExists = await File(path).exists();
if(directoryExists || fileExists) {
    // do stuff
}