> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# ファイルの一覧表示

> アプリケーションのファイルを一覧表示します。

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  アカウントの API キーです。これは[アカウント設定](https://squarecloud.app/ja/account/security)で確認できます。
</ParamField>

### Parameters

<ParamField path="app_id" type="string" placeholder="Application ID" required>
  アプリケーションのID。アプリケーションのダッシュボードのURLで確認できます。
</ParamField>

<ParamField query="path" type="string" placeholder="Path to list" required>
  ファイルを一覧表示したいディレクトリのパス。デフォルトはルートディレクトリです。
</ParamField>

### Response

<ResponseField name="status" type="string">
  呼び出しが成功したかどうかを示します。成功した場合は `success`、失敗した場合は `error` です。
</ResponseField>

<ResponseField name="response" type="array">
  指定されたパス内のファイルとディレクトリの一覧。

  <Expandable title="オブジェクトを切り替え">
    <ResponseField name="type" type="string">
      エントリの種類。`file` または `directory` のいずれかです。
    </ResponseField>

    <ResponseField name="name" type="string">
      ファイルまたはディレクトリの名前。
    </ResponseField>

    <ResponseField name="size" type="number">
      ファイルのサイズ（バイト単位）。ディレクトリの場合は 0 です。
    </ResponseField>

    <ResponseField name="lastModified" type="number">
      ファイルまたはディレクトリの最終更新タイムスタンプ（エポックからのミリ秒）。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
      "status": "success",
      "response": [
          {
              "type": "file",
              "name": ".env",
              "size": 86,
              "lastModified": 1676168978000
          },
          {
              "type": "file",
              "name": ".gitignore",
              "size": 8,
              "lastModified": 1675125328000
          },
          {
              "type": "file",
              "name": "index.js",
              "size": 614,
              "lastModified": 1676168350000
          },
          {
              "type": "file",
              "name": "squarecloud.app",
              "size": 65,
              "lastModified": 1676169188000
          },
          {
              "type": "directory",
              "name": "src",
              "lastModified": 1676155738000
          }
      ]
  }
  ```
</ResponseExample>
