From d7d30ac6bfae16837a9df31c27bd0468a18b42a0 Mon Sep 17 00:00:00 2001
From: Dominic <git@msrd0.de>
Date: Tue, 9 Jan 2024 21:27:35 +0100
Subject: [PATCH] don't skip symlinks

---
 src/main.rs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 52e8565..392a5ee 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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)
-- 
GitLab