std::experi...is_directory(3)
π NAME π
okay so bestie, welcome to the <pink>std::experi...is_directory(3)</pink> page from the <purple>C++ Standard Libary</purple> manual. The main character is std::experimental::filesystem::is_directory β like, the function that checks whether a file status or path is a directory. Thatβs the whole NAME section, periodt. π
β¨
πΈ Synopsis πΈ
Defined in header <experimental/filesystem> π«Ά
bool is_directory( file_status s ); (1) (filesystem TS)
bool is_directory( const path& p ); (2) (filesystem TS)
bool is_directory( const path& p, error_code& ec ); (3) (filesystem TS)
Checks if the given file status or path corresponds to a directory.
(1)is equivalent tos.type() == file_type::directory.(2)is equivalent tois_directory(status(p)).(3)is equivalent tois_directory(status(p, ec)). Returnsfalseif error occurs.
π«Ά Parameters π«Ά
sβ file status to check.pβ path to query.ecβ error code to modify in case of errors.
β¨ Return value β¨
true if the given path or file status corresponds to a directory, false otherwise. Simple as that, bestie. π
π Exceptions π
1,3)β noexcept specification:noexcept. So these two are literally promising not to throw. π«Ά2)β Throwsfilesystem_errorif an error occurs. The exception object is constructed withpas an argument. So yeah, if itβs gonna yell, it yells withpin the mix. π
π¦ See also π¦
This section is incomplete. π Not me reading an incomplete section β itβs giving βweβll finish this later,β and we respect it. π
π Categories π
- Noindexed pages
- unconditionally noexcept
- Todo without reason
π§ Hidden categories π§
- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template
okay thatβs the whole page, bestie. source: http://cppreference.com β’ date: 2024.06.10 β mwah, bye! πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms