/* * Copyright (c) 2023, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Core { struct DirectoryEntry { enum class Type { BlockDevice, CharacterDevice, Directory, File, NamedPipe, Socket, SymbolicLink, Unknown, Whiteout, }; Type type; // FIXME: Once we have a special Path string class, use that. DeprecatedString name; ino_t inode_number; static DirectoryEntry from_dirent(dirent const&); static DirectoryEntry from_stat(DIR*, dirent const&); }; }