Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::filesystem::status_known

      From cppreference.com
      <cpp‎ |filesystem
       
       
      Filesystem library
      Classes
      Functions
      File types
       
      Defined in header<filesystem>
      bool status_known(std::filesystem::file_status s)noexcept;
      (1)(since C++17)

      Checks if the given file status is known, equivalent tos.type()!= file_type::none.

      Contents

      [edit]Parameters

      s - file status to check

      [edit]Return value

      true if the given file status is a known file status.

      [edit]Notes

      Despite the name, the function checks for the file status offile_type::none (meaning an error occurred), notfile_type::unknown (meaning file exists, but its type cannot be determined).

      [edit]See also

      (C++17)(C++17)
      determines file attributes
      determines file attributes, checking the symlink target
      (function)[edit]
      status of the file designated by this directory entry;
      status of the file/symlink designated by this directory entry
      (public member function ofstd::filesystem::directory_entry)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/filesystem/status_known&oldid=136242"

      [8]ページ先頭

      ©2009-2025 Movatter.jp