Skip to main content

base_scheduler/
file_type.rs

1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4/// The portable classification of a filesystem object. Platform metadata can distinguish additional kinds, such as Unix devices, sockets, and FIFOs.
5#[derive(Clone, Copy, Debug, Eq, PartialEq)]
6pub enum FileType {
7    /// A regular file.
8    File,
9    /// A directory.
10    Directory,
11    /// A symbolic link.
12    Symlink,
13    /// Any other kind of object, such as a Unix device, socket, or FIFO.
14    Other,
15}