Abs path to FsFile and FsDirectory

This commit is contained in:
ChristianVisintin
2020-11-15 11:02:36 +01:00
parent 5033657936
commit 1139eb2c17
2 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ pub enum FsEntry {
#[derive(Clone, std::fmt::Debug)]
pub struct FsDirectory {
pub name: String,
pub abs_path: PathBuf,
pub last_change_time: SystemTime,
pub last_access_time: SystemTime,
pub creation_time: SystemTime,
@@ -60,6 +61,7 @@ pub struct FsDirectory {
#[derive(Clone, std::fmt::Debug)]
pub struct FsFile {
pub name: String,
pub abs_path: PathBuf,
pub last_change_time: SystemTime,
pub last_access_time: SystemTime,
pub creation_time: SystemTime,