Skip to main content

file · Command reference

qzx listFiles

What it does

Lists files in a directory with support for wildcards and recursive searching

Command maturity: Alpha

Available for real use and feedback while its interface and behavior can still evolve. This is the current development-checkout assessment. Every future immutable release tag preserves the exact assessment shipped by that version. Available in PyPI 0.2.2.0.15. This page documents the 0.2.2.0.15 alpha development checkout.

Behavior and built-in protections

Inspects without changing state

Direct execution for this operation

Works without invoking native programs

Works without network access

No elevation required by design

This safety classification was reviewed by Claude Opus 5.5 (Anthropic) against implementation digest sha256:bda37fd4d239859ae8c78c48166029545fc7538d34d5639edb7665959b73c3be on 2026-10-08.

Exact syntax

qzx listFiles [directory_path] [pattern] [recursive] --json

Parameters

Swipe or use the horizontal scrollbar to see every column.

NameTypeRequiredDefaultDescription
directory_pathstrNo"."Path to the directory to list files from
patternstrNo"*"File pattern to filter by (e.g., "*.txt", "doc*.pdf")
recursivestrNoNot declaredRecursion level: none by default, -r/--recursive for unlimited depth, -rN/--recursiveN for N levels deep

Input examples

qzx listFiles

List all files in the current directory

qzx listFiles C:\Documents

List all files in the C:\Documents directory (Windows)

qzx listFiles /home/user/documents

List all files in the /home/user/documents directory (Linux/Mac)

qzx listFiles . "*.py"

List all Python files in the current directory

qzx listFiles src "*.js" -r

List all JavaScript files in the src directory and all its subdirectories

qzx listFiles src "*.js" -r2

List all JavaScript files in the src directory and up to 2 levels of subdirectories

For the complete structured payload, add --json: qzx listFiles [directory_path] [pattern] [recursive] --json

Observed output example

Captured with QZX 0.2.2.0.15 on Windows 11; exit code 0. Host-dependent values and duration can vary.

Example command: qzx listFiles ../artifacts/qzx-evidence/golden-core-files "*.txt" -r --json

{
    "success": true,
    "directory": "../artifacts/qzx-evidence/golden-core-files",
    "pattern": "*.txt",
    "recursive": true,
    "recursion_depth": null,
    "files": [
        {
            "name": "alpha.txt",
            "path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\golden-core-files\\alpha.txt",
            "size": 33,
            "size_formatted": "33.0 B",
            "modified": 1791521130.123349,
            "modified_formatted": "2026-10-08 23:45:30",
            "is_directory": false
        },
        {
            "name": "gamma.txt",
            "path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\golden-core-files\\nested\\gamma.txt",
            "size": 19,
            "size_formatted": "19.0 B",
            "modified": 1791521130.123349,
            "modified_formatted": "2026-10-08 23:45:30",
            "is_directory": false
        }
    ],
    "message": "Found 2 files matching '*.txt' in '../artifacts/qzx-evidence/golden-core-files' (including subdirectories)",
    "meta": {
        "command": "listFiles",
        "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": 6.322,
        "schema_version": 1
    }
}
View the JSON result contract
{
    "$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
        },
        "details": {
            "type": "object",
            "properties": {
                "directory": [],
                "pattern": []
            },
            "additionalProperties": true
        },
        "directory": [],
        "error": [],
        "error_code": {
            "type": "string"
        },
        "files": [],
        "pattern": [],
        "recursion_depth": [],
        "recursive": []
    },
    "additionalProperties": true
}

Errors and limits

The public contract requires success=false and a descriptive message on failure. This catalog does not yet declare a command-specific error taxonomy; inspect the result and do not invent error codes.

QZX is alpha software. Optional dependencies, permissions, and host capabilities can change the result.

{
    "success": false,
    "error": "Directory '../artifacts/qzx-evidence/missing-golden-core-path' not found.",
    "error_code": "path_not_found",
    "message": "Directory '../artifacts/qzx-evidence/missing-golden-core-path' not found.",
    "details": {
        "directory": "../artifacts/qzx-evidence/missing-golden-core-path",
        "pattern": "*"
    },
    "meta": {
        "command": "listFiles",
        "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": 3.483,
        "schema_version": 1
    }
}

Captured command: qzx listFiles ../artifacts/qzx-evidence/missing-golden-core-path --json

Evidence workflow: captured and digest-validated.

Evidence and provenance

Documentation channel
Development documentation 0.2.2.0.15 · main · sha256:b91acee86268edb7cb018a94e089ff8e95835eda3f2cf08b39796c0ab9654693
Availability
0.2.2.0.15 or earlier

Keep exploring

These commands also belong to the file category. Compare them to choose the operation that best fits your task.

Explore all QZX commands