craydate 0.1.7

A safe Rust API for the Playdate hand held gaming system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::file_path_timestamp::FilePathTimestamp;

/// Information about a file path in the filesystem.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum FilePathStat {
  /// The path refers to a folder.
  Folder {
    /// When the folder was last modified, which occurs when a file is created or deleted.
    modified: FilePathTimestamp,
  },
  /// The path refers to a file.
  File {
    /// The size of the file in bytes.
    size: u32,
    /// When the file was last modified.
    modified: FilePathTimestamp,
  },
}