exfat/
file.rs

1#[cfg(feature = "max-filename-size-30")]
2pub const MAX_FILENAME_SIZE: usize = 30;
3#[cfg(not(feature = "max-filename-size-30"))]
4pub const MAX_FILENAME_SIZE: usize = 510;
5
6#[derive(Copy, Clone)]
7pub struct TouchOptions {
8    pub access: bool,
9    pub modified: bool,
10}
11
12impl Default for TouchOptions {
13    fn default() -> Self {
14        Self { access: true, modified: true }
15    }
16}
17
18#[derive(Copy, Clone, Default, Debug)]
19pub struct FileOptions {
20    /// Fragment will produce unpredictable latency when writing,
21    /// enabling this option will indicate write operation
22    /// returns Fragment error instead of filling FAT chain
23    pub dont_fragment: bool,
24}