tcb storage search
按文件名模式搜索云端文件。
v3.0.0+
tcb storage search 自 v3.0.0 起提供。
语法
tcb storage search <pattern> [options]
参数
| 参数 | 必填 | 说明 | 默认值 |
|---|---|---|---|
<pattern> | 是 | 文件名模式,支持通配符 | — |
--dir <dir> | 否 | 搜索目录 | 根目录 |
--type <ext> | 否 | 文件类型,如 jpg、png、pdf | — |
--regex | 否 | 将 pattern 作为正则表达式处理 | false |
-e, --env-id <envId> | 否 | 环境 ID | — |
模式用引号包裹,避免 Shell 提前展开通配符。
示例
tcb storage search '*.jpg'
tcb storage search '*' --dir images/ --type png
tcb storage search '^photo.*\.jpg$' --regex