cleaner_core/tree/entry.rs
1use std::ffi::OsString;
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct DirEntry {
5 pub name: OsString,
6 pub size: u64,
7 pub is_dir: bool,
8 pub is_temp: bool,
9}
10
11impl DirEntry {
12 pub fn new(name: impl Into<OsString>, size: u64, is_dir: bool, is_temp: bool) -> Self {
13 Self {
14 name: name.into(),
15 size,
16 is_dir,
17 is_temp,
18 }
19 }
20}