don't skip symlinks

This commit is contained in:
Dominic 2024-01-09 21:27:35 +01:00
parent 5c50b33251
commit d7d30ac6bf
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -233,7 +233,7 @@ fn main() {
if (lower.ends_with(".mp4") if (lower.ends_with(".mp4")
|| lower.ends_with(".mts") || lower.ends_with(".mts")
|| lower.ends_with(".mkv")) || lower.ends_with(".mkv"))
&& entry.file_type().unwrap().is_file() && !entry.file_type().unwrap().is_dir()
{ {
files.push(String::from(name)); files.push(String::from(name));
} }
@ -241,7 +241,11 @@ fn main() {
files.sort_unstable(); files.sort_unstable();
assert!(!files.is_empty()); assert!(!files.is_empty());
println!("I found the following source files: {files:?}"); print!("I found the following source files:");
for f in &files {
print!(" {f}");
}
println!();
files = ask("Which source files would you like to use? (specify multiple files separated by whitespace)") files = ask("Which source files would you like to use? (specify multiple files separated by whitespace)")
.split_ascii_whitespace() .split_ascii_whitespace()
.map(String::from) .map(String::from)