game files list: filter out local
This commit is contained in:
@@ -2095,8 +2095,12 @@ async fn get_game_file_descriptions(
|
|||||||
|
|
||||||
let mut file_descriptions = Vec::new();
|
let mut file_descriptions = Vec::new();
|
||||||
|
|
||||||
|
let local_dir = game_path.join("local");
|
||||||
|
|
||||||
for entry in walkdir::WalkDir::new(&game_path)
|
for entry in walkdir::WalkDir::new(&game_path)
|
||||||
.into_iter()
|
.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)
|
.filter_map(std::result::Result::ok)
|
||||||
{
|
{
|
||||||
let relative_path = match entry.path().strip_prefix(&base_dir) {
|
let relative_path = match entry.path().strip_prefix(&base_dir) {
|
||||||
|
|||||||
Reference in New Issue
Block a user