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 is noexcept and =default-ed, meaning the compiler handles it and nothing will throw. chillest behavior imaginable. 🫢
  • file_status(file_status &&) noexcept=default β€” move constructor. also noexcept, 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 a file_type and optionally some perms. and if you don't? it defaults to perms::unknown. no cap. also noexcept, 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. again const, again noexcept. 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