shared/types/
filesystem.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/// Represents the types of directories used in the application.
///
/// `Current` - Refers to the current working directory.
/// `Workspace` - Designates the workspace directory, often used in development environments.
pub enum DirType {
    Current,
    Workspace,
}

/// Specifies the types of files or entities in a file system.
///
/// `File` - Represents a standard file.
/// `Directory` - Represents a directory.
pub enum FileType {
    File,
    Directory,
}

/// Enumerates the supported image file extensions.
///
/// `PNG` - Portable Network Graphics format, used for images with transparency.
/// `JPG` - JPEG compression format, commonly used for digital photography.
/// `JPEG` - A variant of the JPG extension, often used interchangeably.
pub enum FileExtension {
    PNG,
    JPG,
    JPEG,
}