game files list: filter out local

This commit is contained in:
2025-11-13 21:59:05 +01:00
parent d785fcc93a
commit c1d20189c3
+4
View File
@@ -2095,8 +2095,12 @@ async fn get_game_file_descriptions(
let mut file_descriptions = Vec::new();
let local_dir = game_path.join("local");
for entry in walkdir::WalkDir::new(&game_path)
.into_iter()
// Skip the local install folder; it's not meant to sync.
.filter_entry(|entry| !entry.path().starts_with(&local_dir))
.filter_map(std::result::Result::ok)
{
let relative_path = match entry.path().strip_prefix(&base_dir) {