Skip to main content
List the contents of a directory.

Python SDK

HTTP API

Parameters

string
required
Viking URI of the directory to list
boolean
default:"false"
Return only relative paths instead of full entry objects
boolean
default:"false"
List all subdirectories recursively
string
default:"agent"
Output format: original or agent
integer
default:"256"
Abstract limit (only for agent output mode)
boolean
default:"false"
List all hidden files (like ls -a)
integer
default:"1000"
Maximum number of nodes to list

Response

Returns an array of directory entries (or paths if simple=true).

Entry Object

string
File or directory name
integer
Size in bytes
integer
File mode (Unix permissions)
string
ISO timestamp of last modification
boolean
true if directory, false if file
string
Viking URI of the entry
object
Optional metadata

CLI