📅  最后修改于: 2022-03-11 14:57:47.913000             🧑  作者: Mango
List _folders;
Future getDir() async {
final directory = await getApplicationDocumentsDirectory();
final dir = directory.path;
String pdfDirectory = '$dir/';
final myDir = new Directory(pdfDirectory);
setState(() {
_folders = myDir.listSync(recursive: true, followLinks: false);
});
print(_folders);
}