change to full path

This commit is contained in:
Pakin 2025-09-08 11:10:36 +07:00
parent 95fd7f8e03
commit 67e36b0620

View file

@ -68,7 +68,7 @@ pub fn read_last_build_firmwares() -> Result<Vec<LastBuildFirmware>, Box<dyn std
let dir = entry.unwrap();
let meta = dir.clone().metadata().unwrap();
let filename = dir.clone().file_name().to_str().unwrap().to_string();
let filename = dir.clone().path().to_str().unwrap().to_string();
let mod_time: DateTime<Utc> = meta.modified().unwrap().into();
let full_firmware = filename.clone().contains("full");