# std.fs.File: prefer getSize over getEndPos · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/282c3575b16499518b19ee9b1a8364c9379dab94)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 282c3575b16499518b19ee9b1a8364c9379dab94

Requested commit: 282c3575b16499518b19ee9b1a8364c9379dab94

Commit: 282c3575b16499518b19ee9b1a8364c9379dab94

Tree: 5032afc9b6c30449cb6fa193b5ca7c954b6e2dd5

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.File: prefer getSize over getEndPos

The former detects when it is appropriate to switch to streaming mode.

closes #24798

```

## Parents

- [60f8584927a1df4b08d1868ec4db5e6da4cad33d](https://git.cafe/gitcafe/zig/commit/60f8584927a1df4b08d1868ec4db5e6da4cad33d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/282c3575b16499518b19ee9b1a8364c9379dab94?format=markdown)
