12345678910111213141516171819202122232425262728293031323334 |
- /*
- * Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <AK/DeprecatedString.h>
- struct dirent;
- 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;
- static DirectoryEntry from_dirent(dirent const&);
- };
- }
|