Skip to content

[Bug] Folder download not working #957

@kitswas

Description

@kitswas

Trying to use the Kaggle CLI with a pattern, but there's no match. (I need the q3_samples folder located at /kaggle/working/q3_samples)

uv run kaggle kernels output <notebook_path> -p kaggle_outputs/part3 --file-pattern q3_samples
Kernel log downloaded to kaggle_outputs/part3\cv-a3-part-3-runner.log
Next page token: <LONG_STRING>

Any idea how to download only a specific folder from Kaggle output?

uv run kaggle kernels output --help
usage: kaggle kernels output [-h] [-p PATH] [-w] [-o] [-q] [--file-pattern FILE_PATTERN] [kernel]

options:
  -h, --help            show this help message and exit
  kernel                Kernel URL suffix in format <owner>/<kernel-name> (use "kaggle kernels list" to show options)
  -p PATH, --path PATH  Folder where file(s) will be downloaded, defaults to current working directory
  -w, --wp              Download files to current working path
  -o, --force           Skip check whether local version of file is up to date, force file download
  -q, --quiet           Suppress printing information about the upload/download progress
  --file-pattern FILE_PATTERN
                        Regex pattern to match against filenames. Only files matching the pattern will be downloaded.

This does not mention anything about pagination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions