---
title: "AppFile"
description: "The `AppFile` entity."
section: "Reference"
group: "Types"
order: 27
---

## Definition

```ts
interface AppFile {
  name: string;
  path: string;
  isDirectory: boolean;
  size: number | null;
}
```

## Fields

| Field         | Type             | Notes                                                              |
| ------------- | ---------------- | ------------------------------------------------------------------ |
| `name`        | `string`         | `required` — File or directory name (last path segment).           |
| `path`        | `string`         | `required` — Full path within the app, relative to the app root.   |
| `isDirectory` | `boolean`        | `required` — True when the entry is a directory, false for a file. |
| `size`        | `number \| null` | `required` — File size in bytes; null for directories.             |
