# fs.file.head

Reads what is known about a file without reading its bytes

# fs.file.head

```
fs.file.head --from FILE [--store TEXT] → file
```

Reads what is known about a file without reading its bytes. Read what is known about the file `--from` names — a FileRef, an upload or a store key — without reading its bytes. Adds `file: { path, size, modified, kind, content_type }` and keeps the rest of the payload. A missing file fails the node; it does not answer null.

## Flags

- `--from` (required): The file: a FileRef, an upload or a store key.
- `--store`: The store a bare key is read from: `local`, or the id of an `s3` credential; a FileRef is read from its own store. Saved explicitly when the pipeline is registered.

## Examples

### Stat a stored file

```
| fs.file.head --from uploads/a1.jpg
```

It answers:

```json
{
  "file": {
    "path": "uploads/a1.jpg",
    "size": 1723,
    "modified": "2026-09-13T04:00:00Z",
    "kind": "object",
    "content_type": "image/jpeg"
  }
}
```
