std::filesystem::file_status(3cxx)
π std::filesystem::file_status β from the libstdc++ collection, section 3cxx π
okay bestie, sit down, hydrate, because we're about to talk about the little struct that knows what a file is and what it's allowed to do. yes. that one. she's small, she's header-only, she's lowkey carrying the whole filesystem library. π
β¨ NAME β¨
std::filesystem::file_status β Information about a file's type and permissions.
like... that's it. that's the whole job description. type + perms. the two things you need to know about literally any file on earth. π¦
πΈ SYNOPSIS πΈ
#include <fs_dir.h>
yes bestie, that's the include. fs_dir.h. write it down. π
π Public Member Functions π
π Constructors & Assignment (the "how do I even make one" section)
file_status(const file_status &) noexcept=defaultβ copy constructor, and she isnoexceptand=default-ed, meaning the compiler handles it and nothing will throw. chillest behavior imaginable. π«Άfile_status(file_status &&) noexcept=defaultβ move constructor. alsonoexcept, also=default. she moves out without a single tear. β¨file_status(file_type __ft, perms __prms=perms::unknown) noexceptβ the main character constructor. you hand her afile_typeand optionally someperms. and if you don't? it defaults toperms::unknown. no cap. alsonoexcept, because she's not about to stress you out. πfile_status & operator=(const file_status &) noexcept=defaultβ copy assignment,noexcept,=default. slay.file_status & operator=(file_status &&) noexcept=defaultβ move assignment,noexcept,=default. periodt.
π Getters & Setters (the "talk to her" section)
perms permissions() const noexceptβ returns the permissions she's holding.const,noexcept. she's not changing anything, she's just telling you. πvoid permissions(perms __prms) noexceptβ sets the permissions to__prms. returns nothing, throws nothing. iconic.file_type type() const noexceptβ returns the file type. againconst, againnoexcept. she's consistent, we love that for her. βvoid type(file_type __ft) noexceptβ sets the file type to__ft. done. no drama. π
π¦ Detailed Description π¦
Information about a file's type and permissions.
(that's the entire detailed description, bestie. sometimes the vibe check is just... a vibe check. she does one thing and she does it flawlessly. π)
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code.
like, not a human. a robot wrote this. and honestly? the robot ate. π€β¨
and that's the whole page, bestie!! π source is libstdc++, the page is std::filesystem::file_status(3cxx) β go forth and check your file types, ily, bye!! πππ¦πΈπβ
π¦ where this page comes from
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms