Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::filesystem::file_status

Stores information about the type and permissions of a file.

Filesystem
  • C++17
  • C++20
1 min readView on cppreference
NotebookLM
Defined in header <filesystem>
class file_status;
(since C++17)

Stores information about the type and permissions of a file.

Member functions

constructs a file_status object
(public member function)
assigns contents
(public member function)
(destructor)
implicit destructor
(public member function)
gets or sets the type of the file
(public member function)
gets or sets the permissions of the file
(public member function)

Non-member functions

compares two file_status objects
(function)

See also

(C++17)(C++17)
determines file attributes
determines file attributes, checking the symlink target
(function)
status of the file designated by this directory entry;
status of the file/symlink designated by this directory entry
(public member function of std::filesystem::directory_entry)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.