Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::filesystem::is_directory

      From cppreference.com
      <cpp‎ |experimental‎ |fs
       
       
       
      Filesystem library
      Classes
      Functions
      File types
       
      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) Equivalent tos.type()== file_type::directory.
      2) Equivalent tois_directory(status(p)).
      3) Equivalent tois_directory(status(p, ec)). Returnsfalse if error occurs.

      Contents

      [edit]Parameters

      s - file status to check
      p - path to query
      ec - error code to modify in case of errors

      [edit]Return value

      true if the given path or file status corresponds to a directory,false otherwise.

      [edit]Exceptions

      1,3)
      noexcept specification:  
      noexcept
        
      2) Throwsfilesystem_error if an error occurs. The exception object is constructed withp as an argument.

      [edit]See also

      This section is incomplete
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/is_directory&oldid=154852"

      [8]ページ先頭

      ©2009-2026 Movatter.jp