file_mode(3)

DESCRIPTION

Combines a file_type with file_permissions. It identifies unknown, FIFO, character, directory, regular, and symlink nodes; exists() reports whether the type is not unknown. chmod() returns a mode with the same type and the supplied permission bits masked to 07777.

SYNOPSIS

#include <astia/fs.hpp>

class file_mode;

RETURN VALUE

  • The constexpr queries return the stored type, permissions, existence state, or permission decision.

ERRORS

No runtime errors are produced by this value type.

NOTES

The type and permission components are deliberately separate. chmod() changes neither ownership nor file type.