Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

List files on a lease

Lists one directory in the lease.

Lists one directory in the lease.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/leases/lease:listFiles
  • Scope sandboxes:exec
  • Effect read — nothing is written.
  • Collection leases

#Request

FieldTypeWhat it is
namestringThe name of the lease. Required.
pathstringThe absolute directory path in the guest. Required.
depthint32Descend this many levels; default 1.

#Response

FieldTypeWhat it is
entriesFileEntry[]The entries.

#FileEntry

FieldTypeWhat it is
pathstringThe absolute path.
directoryboolWhether it is a directory.
size_bytesint64Size in bytes.
modeint32The mode bits.
modify_timetimestampWhen it last changed.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/leases/lease:listFiles" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"path":"…"}'