Skip to content
Snippets Groups Projects
Unverified Commit d7d30ac6 authored by Dominic Meiser's avatar Dominic Meiser
Browse files

don't skip symlinks

parent 5c50b332
Branches
Tags
No related merge requests found
...@@ -233,7 +233,7 @@ fn main() { ...@@ -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() { ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment