FLUTTER ECOSYSTEM

glob

一个用于执行 Bash 风格文件和目录通配的库。

最新版本
2.1.3
近 30 天下载
620万
喜欢数
102
Pub 分数
150

Package Overview

基于插件公开资料生成的选型评价,仅供参考。

插件概览

glob 包为 Dart 应用程序提供 Bash 风格的文件和目录模式匹配。它使用户能够使用通配符(如 * 和 ?)搜索文件和目录,支持递归搜索和灵活的路径过滤。非常适合用于构建脚本、文件处理工具以及需要根据模式定位文件的开发实用程序。该包轻量且兼容所有主要平台,包括移动和桌面环境。

适合场景
  • File discovery in build systems
  • Recursive directory scanning
  • Pattern-based file filtering
  • Automated testing setup
  • Code generation workflows
主要特点
  • Bash-style wildcard support
  • Recursive directory matching
  • Cross-platform compatibility
  • Simple API for pattern matching
  • Supports both files and directories
适合对象
  • Build and CI/CD tools
  • Development automation scripts
  • File system explorers
  • Code analysis utilities
  • Project scaffolding
使用建议
  • 在非常大的目录树中可能较慢
  • 不支持高级正则表达式模式
  • 仅限文件系统操作
  • 无效路径没有内置的错误处理
  • 需要显式路径解析
支持平台AndroidiOSmacOSWindowsLinux

安装插件

flutter pub add glob

所属分类

源码仓库

关联项目

所在榜单