1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[cfg(feature = "max-filename-size-30")]
pub const MAX_FILENAME_SIZE: usize = 30;
#[cfg(not(feature = "limit-filename-size"))]
pub const MAX_FILENAME_SIZE: usize = 510;

#[derive(Copy, Clone)]
pub struct TouchOptions {
    pub access: bool,
    pub modified: bool,
}

impl Default for TouchOptions {
    fn default() -> Self {
        Self { access: true, modified: true }
    }
}

#[derive(Copy, Clone, Default, Debug)]
pub struct FileOptions {
    /// Fragment will produce unpredictable latency when writing,
    /// enabling this option will indicate write operation
    /// returns Fragment error instead of filling FAT chain
    pub dont_fragment: bool,
}