dorkhub

flutter_file_manager

A flutter version of the file explorer

huang-weilong
Dart12029 forksGPL-3.0updated 4 years ago
git clone https://github.com/huang-weilong/flutter_file_manager.githuang-weilong/flutter_file_manager

flutter_file_manager

一个flutter版本的文件管理器,查看SD卡内的文件(android)

列出当前文件夹下所有的文件、文件夹

Directory currentDir = Directory(path);
List<FileSystemEntity> _files = [];
List<FileSystemEntity> _folder = [];
// 遍历所有文件/文件夹
for (var v in currentDir.listSync()) {
 // 去除以 .开头的文件/文件夹
 if (p.basename(v.path).substring(0, 1) == '.') {
   continue;
 }
 if (FileSystemEntity.isFileSync(v.path))
   _files.add(v);
 else
   _folder.add(v);
}

打开文件

使用open_file: 3.2.1插件

OpenFile.open(file.path);

效果图

简书 flutter版的文件管理器
掘金 flutter版的文件管理器

more like this

r2

Free open-source Cloudflare R2 desktop client and S3 GUI for macOS, Windows, and Linux. Manage Cloudflare R2, AWS S3, M…

TypeScript50

meine

meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…

Python50

MTT-File-Manager-RUST

MTT File Manager is a Rust-based Windows file manager with tabbed navigation, rich media previews, deep system integrat…

Rust51

search

search projects, people, and tags