# std.Io.File + stat: No uid/gid?

**URL:** <https://ziggit.dev/t/std-io-file-stat-no-uid-gid/14871>\
**Category:** Help\
**Tags:** standard-library\
**Created:** [April 10, 2026, 3:36am UTC](https://ziggit.dev/t/std-io-file-stat-no-uid-gid/14871 "2026-04-10T03:36:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![floooh](https://ziggit.dev/user_avatar/ziggit.dev/floooh/32/2989_2.png) [@floooh](https://ziggit.dev/u/floooh)\
**Post date:** [April 10, 2026, 8:12am UTC](https://ziggit.dev/t/std-io-file-stat-no-uid-gid/14871/2 "2026-04-10T08:12:30Z")

</div>

This was answered here:

> [@File stat in zig 0.16-dev](https://ziggit.dev/t/file-stat-in-zig-0-16-dev/14426):
>
> how do I get the uid and gid of a file? I’ve searched through the official documentation but still don’t quite understand how to do it.

TL;DR: uid/gid are UNIX concepts and not portable.

PS: I wonder though if it would make sense to add platform-specific properties to the cross-platform `Stat` struct as optionals…

---

_[View the full topic](https://ziggit.dev/t/std-io-file-stat-no-uid-gid/14871)._
