Follow symlinks (#443)

Fixes #442
This commit is contained in:
Denis Isidoro 2020-12-03 14:15:10 -03:00 committed by GitHub
parent f31ee7d308
commit ace2b24960
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ pub fn all_cheat_files(path_str: &str) -> Vec<String> {
};
WalkDir::new(&path_str)
.follow_links(true)
.into_iter()
.filter_map(|e| e.ok())
.map(|e| e.path().to_str().unwrap_or("").to_string())