且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

扑.加载前检查文件是否存在

更新时间:2023-11-25 23:22:40

为了查看应用使用的内部本地存储中是否存在文件:

In order to see whether or not a file exists in internal local storage of the app use:

import 'dart:io' as io;
// for a file
io.File(path).exists();
// for a directory
io.Directory(path).exists();