IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

stat

File type constants and detection from stat system calls.

The stat package provides constants and utility functions for working with file metadata from POSIX stat system calls. It defines standard file type bit masks and predicates for determining file types from mode values. This package enables portable file type checking across Unix-like systems.

Use this package when working with file system metadata, implementing portable file type detection, or interfacing with POSIX file operations.

Modules

  • stat: Provides constants and functions for interpreting file mode bits.