Skip to main content
Recursively iterates a directory and returns a table with file metadata (paths, sizes, types, permissions, modification times) and, optionally, file contents. In clickhouse-server mode, the path must be within the user_files_path directory. Symlinks inside user_files_path that point outside of it are followed, but only entries whose path (through the symlink) starts with user_files_path are returned. In clickhouse-local mode, there are no path restrictions.

Syntax

Arguments

Returned columns

Only columns actually used in the query are computed, so selecting a subset of columns (especially omitting content) is efficient.

Examples

List files in user_files

Find large files

Read file contents

List only immediate children

Last modified on July 1, 2026