Serverless
Files

List files (directory)

Lists files and folders within the specified directory path.

get/serverless/files/list/{dir}

Path parameters

dirstring required

Directory path to list

Example:datasets/images

Directory path to list

Response

Successfully listed files

pathstring required

Full file or folder path

namestring required

Base name of the file or folder

created_timestring date-time required

Creation timestamp (UTC ISO 8601)

updated_timestring date-time required

Last update timestamp (UTC ISO 8601)

is_fileboolean required

True if this item is a file, false if it is a folder

sizenumber required

File size in bytes (0 for folders)

checksum_sha256string

Optional SHA256 checksum

checksum_md5string

Optional MD5 checksum

Example response

[
  {
    "path": "datasets/images/cat.jpg",
    "name": "cat.jpg",
    "created_time": "2024-11-08T00:00:00.000Z",
    "updated_time": "2024-11-09T00:00:00.000Z",
    "is_file": true,
    "size": 1250023,
    "checksum_sha256": "b1946ac92492d2347c6235b4d2611184d5c3f1f0f44aa7b27d3b1d5b0f5a6a11",
    "checksum_md5": "9e107d9d372bb6826bd81d3542a419d6"
  }
]

Changes

No recorded changes to this endpoint across all 2 revisions of this API.