std::experi...::file_type(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::experi...::file_type(3) πŸ’…

okay bestie, welcome to the C++ Standard Libary manual β€” yes, that’s the spelling, don’t come for me 😭 β€” and this page is all about std::experi...::file_type(3). iconic little enum, fr fr.


πŸ’– NAME πŸ’–

std::experimental::filesystem::file_type β€” and yeah, it’s literally also std::experimental::filesystem::file_type. the full name is doing the most, but we respect it 🫢


✨ Synopsis ✨

Defined in header <experimental/filesystem>, and the enum goes like this:

Defined in header <experimental/filesystem>
enum class file_type {

    none = 0,
    not_found = -1,
    regular = 1,
    directory = 2,
    symlink = 3,                             (filesystem TS)
    block = 4,
    character = 5,
    fifo = 6,
    socket = 7,
    unknown = 8

};

It indicates a type of a file or directory a path refers to. very β€œwhat even are you, actually?” energy πŸ’…

🚧 This section is incomplete 🚧

🌸 Constants 🌸

here’s the constant tea, one by one β˜•:

  • none β€” indicates that the file status has not been evaluated yet, or an error occurred when evaluating it
  • not_found β€” indicates that the file was not found (this is not considered an error)
  • regular β€” a regular file
  • directory β€” a directory
  • symlink β€” a symbolic link
  • block β€” a block special file
  • character β€” a character special file
  • fifo β€” a FIFO (also known as pipe) file
  • socket β€” a socket file
  • unknown β€” an unknown file

πŸ¦‹ See also πŸ¦‹

🚧 This section is incomplete 🚧

that’s it, bestie. no extra lore on this one πŸ™ˆ


πŸŽ€ Categories πŸŽ€

this page is filed under:

  • Noindexed pages
  • Todo without reason

mwah πŸ’‹ that’s the whole page. source/version and date: http://cppreference.com, 2024.06.10 β€” slay, bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from