Skip to main content
POST
List Directory Contents

Body

application/json
path
string
required

Directory path to list

Example:

"/home/user/documents"

include_hidden
boolean
default:false

Whether to include hidden files/directories

Example:

false

pattern
string | null

Glob pattern to filter results

Example:

"*.txt"

Response

Successfully listed directory contents

name
string
required

File or directory name

Example:

"document.txt"

path
string
required

Full path to the file or directory

Example:

"/home/user/documents/document.txt"

type
string
required

Type of entry: 'file' or 'directory'

Example:

"file"

size
integer
required

Size in bytes

Example:

1024

modified_time
string<date-time>
required

Last modification time

Example:

"2024-03-10T12:34:56"

is_hidden
boolean
required

Whether the file/directory is hidden

Example:

false

extension
string | null

File extension if applicable

Example:

"txt"