std::filesystem::file_status
std::filesystem::file_status (파일 유형·권한 정보)
파일의 유형과 권한에 관한 정보를 저장하는 클래스예요. C++17부터 있어요.
출처: cppreference
본문
<filesystem> 헤더에 정의돼 있어요.
class file_status;
파일의 유형과 권한에 관한 정보를 저장해요.
멤버 함수
- (constructor) —
file_status객체를 생성해요. - operator= — 내용을 할당해요.
- (destructor) — 암시적 소멸자.
- type — 파일의 유형을 얻거나 설정해요.
- permissions — 파일의 권한을 얻거나 설정해요.
비멤버 함수
- operator== (C++20) — 두
file_status객체를 비교해요.
friend bool operator==( const file_status&, const file_status& ) = default;