don't skip symlinks
This commit is contained in:
parent
5c50b33251
commit
d7d30ac6bf
1 changed files with 6 additions and 2 deletions
|
@ -233,7 +233,7 @@ fn main() {
|
|||
if (lower.ends_with(".mp4")
|
||||
|| lower.ends_with(".mts")
|
||||
|| lower.ends_with(".mkv"))
|
||||
&& entry.file_type().unwrap().is_file()
|
||||
&& !entry.file_type().unwrap().is_dir()
|
||||
{
|
||||
files.push(String::from(name));
|
||||
}
|
||||
|
@ -241,7 +241,11 @@ fn main() {
|
|||
files.sort_unstable();
|
||||
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)")
|
||||
.split_ascii_whitespace()
|
||||
.map(String::from)
|
||||
|
|
Loading…
Reference in a new issue