Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::filesystem::directory_entry

      From cppreference.com
      <cpp‎ |filesystem
       
       
      Filesystem library
      Classes
      Functions
      File types
       
      std::filesystem::directory_entry
      Member functions
      Modifiers
      Observers
      Non-member functions
       
      Defined in header<filesystem>
      class directory_entry;
      (since C++17)

      Represents a directory entry. The object stores apath as a member and may also store additional file attributes (hard link count, status, symlink status, file size, and last write time) during directory iteration.

      Contents

      [edit]Member functions

      constructs a directory entry
      (public member function)[edit]
      (destructor)
      default destructor
      (public member function)[edit]
      Modifiers
      assigns contents
      (public member function)[edit]
      assigns contents
      (public member function)[edit]
      sets the filename
      (public member function)[edit]
      updates the cached file attributes
      (public member function)[edit]
      Observers
      returns the path the entry refers to
      (public member function)[edit]
      checks whether directory entry refers to existing file system object
      (public member function)[edit]
      checks whether the directory entry refers to block device
      (public member function)[edit]
      checks whether the directory entry refers to a character device
      (public member function)[edit]
      checks whether the directory entry refers to a directory
      (public member function)[edit]
      checks whether the directory entry refers to a named pipe
      (public member function)[edit]
      checks whether the directory entry refers to another file
      (public member function)[edit]
      checks whether the directory entry refers to a regular file
      (public member function)[edit]
      checks whether the directory entry refers to a named IPC socket
      (public member function)[edit]
      checks whether the directory entry refers to a symbolic link
      (public member function)[edit]
      returns the size of the file to which the directory entry refers
      (public member function)[edit]
      returns the number of hard links referring to the file to which the directory entry refers
      (public member function)[edit]
      gets the time of the last data modification of the file to which the directory entry refers
      (public member function)[edit]
      status of the file designated by this directory entry;
      status of the file/symlink designated by this directory entry
      (public member function)[edit]
      (removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
      compares two directory entries
      (public member function)[edit]

      [edit]Non-member functions

      performs stream output on a directory entry
      (function)[edit]

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 3171C++17directory_entry couldn't be inserted byoperator<< because of LWG2989output enabled again
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/filesystem/directory_entry&oldid=164723"

      [8]ページ先頭

      ©2009-2025 Movatter.jp