メインコンテンツへ移動

ファイル · コマンドリファレンス

qzx findFiles

機能

名前、深さ、サイズ、更新日時でファイルを検索し、構造化メタデータを返します。

コマンドの成熟度: Alpha

実際の利用とフィードバックに使えますが、インターフェースと動作はまだ変更される可能性があります。 これは現在の開発チェックアウトに対する評価です。今後の各不変リリースタグには、そのバージョンに含まれた正確な評価が保存されます。 PyPI 0.2.2.0.9 で利用できます。ドキュメントは alpha チェックアウト 0.2.2.0.9 に対応しています。

動作と組み込み保護

状態を変更せずに検査します

この操作は直接実行されます

ネイティブプログラムを呼び出さずに動作します

ネットワークを使わずに動作します

権限昇格なしで動作するよう設計されています

この安全分類は 2026-08-25 に OpenAI GPT-5.6 Pro が実装ダイジェスト sha256:12717a5382f7fc0b8b27847c67aaf89741ae65a55241683f7b293715ee2e279b と照合してレビューしました。

正確な構文

qzx findFiles [search_path] [pattern] [recursive] [min_size] [max_size] [modified_after] [modified_before] [exclude] [exclude_dirs] [sort_by] [descending] [limit] --json

パラメータ

スワイプするか横スクロールバーを使って、すべての列を表示してください。

名前必須既定値説明
search_pathstrいいえ"."検索を開始するディレクトリ
patternstrいいえ"*"*.txt や data-???.csv などのファイル名 glob パターン。既定ではすべてのファイルを含みます
recursivestrいいえ"-r"深さ: -r は無制限、false は現在のディレクトリのみ、-rN は最大 N 階層
min_sizestrいいえ未宣言最小サイズ。例: 500KB、10MiB、またはバイト数
max_sizestrいいえ未宣言最大サイズ。例: 2GB、20MiB、またはバイト数
modified_afterstrいいえ未宣言YYYY-MM-DD、"today"、"yesterday" の指定日時以降に更新されたファイルだけを含める
modified_beforestrいいえ未宣言YYYY-MM-DD、"today"、"yesterday" の指定日時より前に更新されたファイルだけを含める
excludestrいいえ未宣言除外するファイル名 glob パターンをカンマ区切りで指定
exclude_dirsstrいいえ未宣言除外するディレクトリ名 glob パターンをカンマ区切りで指定
sort_bystrいいえ"path"path、name、size、modified で並べ替え
descendingboolいいえfalse選択した並び順を逆転 (true/false)
limitstrいいえ未宣言並べ替え後に返す最大ファイル数

入力例

qzx findFiles . "*.py" --exclude-dirs ".git,.venv"

Python ファイルを再帰検索し、一般的なメタデータディレクトリを除外

qzx findFiles Downloads "*" --min-size 100MiB --sort-by size --descending true --limit 20

一致する 100 MiB 以上のファイルから大きい順に 20 件を返す

qzx findFiles logs "*.log" --modified-after 2026-07-01 --recursive false

サブディレクトリをたどらず最近更新されたログを検索

完全な構造化ペイロードを取得するには --json を追加します: qzx findFiles [search_path] [pattern] [recursive] [min_size] [max_size] [modified_after] [modified_before] [exclude] [exclude_dirs] [sort_by] [descending] [limit] --json

観測された出力例

Windows 11 上の QZX 0.2.2.0.9 で取得。終了コードは 0。ホスト依存の値や所要時間は変わる場合があります。

例のコマンド: qzx findFiles ../artifacts/qzx-evidence/find-files "*.txt" -r --json

{
    "success": true,
    "message": "Found 2 matching files in 'C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\find-files'. Returning 2 files totaling 13.00 B.",
    "search_path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\find-files",
    "pattern": "*.txt",
    "recursive": "unlimited",
    "filters": {
        "min_size_bytes": null,
        "max_size_bytes": null,
        "modified_after": null,
        "modified_before": null,
        "exclude": [],
        "exclude_dirs": []
    },
    "sort": {
        "by": "path",
        "descending": false
    },
    "matched_count": 2,
    "matched_size_bytes": 13,
    "matched_size_readable": "13.00 B",
    "count": 2,
    "total_size_bytes": 13,
    "total_size_readable": "13.00 B",
    "limit": null,
    "truncated": false,
    "skipped_unreadable": 0,
    "warnings": [],
    "results": [
        {
            "name": "alpha.txt",
            "path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\find-files\\alpha.txt",
            "relative_path": "alpha.txt",
            "depth": 0,
            "size_bytes": 7,
            "size_readable": "7.00 B",
            "modified_timestamp": 1789069883.9995615,
            "modified_at": "2026-09-10T14:51:23-05:00"
        },
        {
            "name": "beta.txt",
            "path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\find-files\\nested\\beta.txt",
            "relative_path": "nested\\beta.txt",
            "depth": 1,
            "size_bytes": 6,
            "size_readable": "6.00 B",
            "modified_timestamp": 1789069884.0000687,
            "modified_at": "2026-09-10T14:51:24-05:00"
        }
    ],
    "meta": {
        "command": "findFiles",
        "command_maturity": {
            "stage": "alpha",
            "label": "Alpha",
            "sequence": 2,
            "public_executable": true,
            "stability": "interface_may_change",
            "summary": "Available for real use and feedback while its interface and behavior can still evolve.",
            "promotion_review_required": false,
            "assessment_scope": "development_checkout"
        },
        "duration_ms": 4.066,
        "schema_version": 1
    }
}
JSON 結果コントラクトを見る
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
        "success",
        "message",
        "meta"
    ],
    "properties": {
        "success": {
            "type": "boolean"
        },
        "message": {
            "type": "string"
        },
        "meta": {
            "type": "object",
            "required": [
                "command",
                "command_maturity",
                "duration_ms",
                "schema_version"
            ],
            "properties": {
                "command": {
                    "type": "string"
                },
                "command_maturity": {
                    "type": "object",
                    "required": [
                        "stage",
                        "label",
                        "sequence",
                        "public_executable",
                        "stability",
                        "summary",
                        "promotion_review_required",
                        "assessment_scope"
                    ],
                    "properties": {
                        "stage": {
                            "type": "string"
                        },
                        "label": {
                            "type": "string"
                        },
                        "sequence": {
                            "type": "integer"
                        },
                        "public_executable": {
                            "type": "boolean"
                        },
                        "stability": {
                            "type": "string"
                        },
                        "summary": {
                            "type": "string"
                        },
                        "promotion_review_required": {
                            "type": "boolean"
                        },
                        "assessment_scope": {
                            "type": "string"
                        },
                        "note": {
                            "type": "string"
                        },
                        "review": {
                            "type": "object",
                            "required": [
                                "reviewed_on",
                                "rationale",
                                "evidence"
                            ],
                            "properties": {
                                "reviewed_on": {
                                    "type": "string",
                                    "format": "date"
                                },
                                "rationale": {
                                    "type": "string"
                                },
                                "evidence": {
                                    "type": "array",
                                    "minItems": 1,
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "replacement": {
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        }
                    },
                    "additionalProperties": true
                },
                "duration_ms": {
                    "type": "number"
                },
                "schema_version": {
                    "type": "integer"
                }
            },
            "additionalProperties": true
        },
        "count": [],
        "details": [],
        "error": [],
        "error_code": [],
        "filters": {
            "type": "object",
            "properties": {
                "min_size_bytes": [],
                "max_size_bytes": [],
                "modified_after": [],
                "modified_before": [],
                "exclude": [],
                "exclude_dirs": []
            },
            "additionalProperties": true
        },
        "limit": [],
        "matched_count": [],
        "matched_size_bytes": [],
        "matched_size_readable": [],
        "pattern": [],
        "recursive": [],
        "results": [],
        "search_path": [],
        "skipped_unreadable": [],
        "sort": {
            "type": "object",
            "properties": {
                "by": [],
                "descending": []
            },
            "additionalProperties": true
        },
        "total_size_bytes": [],
        "total_size_readable": [],
        "truncated": [],
        "warnings": []
    },
    "additionalProperties": true
}

エラーと制限

公開コントラクトでは失敗時に success=false と説明的な message が必要です。このカタログではまだコマンドごとのエラー分類を宣言していません。結果を確認し、存在しないコードを推測しないでください。

QZX は alpha 段階です。オプション依存関係、権限、ホスト機能によって結果が変わる場合があります。

{
    "success": false,
    "message": "Search directory does not exist: C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\missing-golden-core-path",
    "error": "Search directory does not exist: C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\missing-golden-core-path",
    "error_code": "path_not_found",
    "details": {
        "search_path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\missing-golden-core-path"
    },
    "meta": {
        "command": "findFiles",
        "command_maturity": {
            "stage": "alpha",
            "label": "Alpha",
            "sequence": 2,
            "public_executable": true,
            "stability": "interface_may_change",
            "summary": "Available for real use and feedback while its interface and behavior can still evolve.",
            "promotion_review_required": false,
            "assessment_scope": "development_checkout"
        },
        "duration_ms": 2.802,
        "schema_version": 1
    }
}

取得したコマンド: qzx findFiles ../artifacts/qzx-evidence/missing-golden-core-path "*.txt" -r --json

証拠フロー: 取得済み・ダイジェストで検証済み。

証拠と出所

ドキュメントチャネル
開発ドキュメント 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
提供状況
0.2.2.0.9 以前

実践ガイド

qzx findFiles がどのようなタスクに適するか、ネイティブツールとどう比較できるか、自動化時に何が重要かを学べます。

さらに探す

これらのコマンドも ファイル カテゴリに属します。比較して、タスクに最適な操作を選んでください。

QZX の全コマンドを見る