---
title: "Fetch the content of a directory"
method: GET
path: "/files/directory/{path}"
tags: ["File"]
---

# Fetch the content of a directory

`GET /files/directory/{path}`

List files and subdirectories in a Fusion file system directory to discover available outputs before downloading.

## Path parameters

- `path` string, required

## Response `200`

Directory listing that shows the content of a directory.

- FileDirectoryResponse
  - `type` 'directory'
  - `name` string
  - `path` string
  - `files` union[]
    - union
      - FileDirectory
        - `type` 'directory'
        - `name` string
        - `path` string
      - File
        - `type` 'file'
        - `name` string
        - `path` string
        - `format` string
        - `hash` string
        - `flow` string — Flow that produced the file
        - `created` string, date-string
        - `size` number — File size in bytes.
        - `owner` string — The owner of the file.

---

[API](https://skmtc.net/recordedfuture/apis/alert-api.md) · [All operations](https://skmtc.net/recordedfuture/apis/alert-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/recordedfuture/alert-api/revisions/c8c2f68d8b60/schema)
