mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fixes #10082 The problem that we were calling `PathBuf::join()` with value of collecting an empty iterator of path components which was equivalent to `PathBuf::from("ios").join("")` which will result in `ios/` with a trailing slash. This is fixed by chaining iterators of path components and collecting only once into `PathBuf`, which will never append empy path component and will never append trailing slash. ```rs [ Component::Normal(OsStr::new("ios")), Component::Normal(&some_folder_name), ] .into_iter() .chain(other_components_iterator) .collect::<PathBuf>() ``` Co-authored-by: Lucas Nogueira <lucas@tauri.studio>