From dfebd8adf0c277a8a466df5d4f4f7ed9fad78d1a Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 18 Nov 2023 22:38:40 -0300 Subject: [PATCH] fix metadata get --- crates/updater/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/updater/src/lib.rs b/crates/updater/src/lib.rs index 49d3d348..6399cb7e 100644 --- a/crates/updater/src/lib.rs +++ b/crates/updater/src/lib.rs @@ -677,7 +677,7 @@ impl Update { let tmp_dir = tempfile::Builder::new() .prefix("current_app") .tempdir_in(tmp_dir_root)?; - let tmp_dir_metadata = tmp_dir.metadata()?; + let tmp_dir_metadata = tmp_dir.path().metadata()?; if extract_path_metadata.dev() == tmp_dir_metadata.dev() { let mut perms = tmp_dir_metadata.permissions();