如何获取目录中的子目录列表?
import 'dart:io';
void main() async {
// Get the system temp directory.
var systemTempDir = Directory.systemTemp;
// List directory contents, not recursing into sub-directories,
// not following symbolic links.
await for (var entity in
systemTempDir.list(recursive: false, followLinks: false)) {
print(entity.path);
}
}
字符串
1条答案
按热度按时间cidc1ykv1#
也许是这样的:
字符串