file_type

file_type (파일 타입)

std::filesystem::file_type은 경로가 가리키는 파일·디렉터리의 타입을 나타내는 상수들을 정의해요.

출처: cppreference

본문

file_type는 파일이나 디렉터리의 종류를 나타내는 열거형이에요.

enum class file_type {
    none = /* unspecified */,
    not_found = /* unspecified */,
    regular = /* unspecified */,
    directory = /* unspecified */,
    symlink = /* unspecified */,
    block = /* unspecified */,
    character = /* unspecified */,
    fifo = /* unspecified */,
    socket = /* unspecified */,
    unknown = /* unspecified */
};

일반 파일, 디렉터리, 심볼릭 링크, 블록/문자 장치, 파이프(FIFO), 소켓 등을 구분해요.

더 알아보기 (Learn more)

cppreference