getFiles() async {
try {
var dir = Directory('/data/user/0/com.example.demo/your created folder name');
if (dir.existsSync()) {
List dataList = dir.listSync();
for (var element in dataList) {
print('get filePath: $element');
}
}
} catch (e) {
print('error: $e');
}
}
1条答案
按热度按时间bmp9r5qi1#