feat: add cli argument to specify whether to copy or move

This commit is contained in:
2026-08-24 20:46:24 +02:00
parent dd6675bac2
commit 5a5a4f4330
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -9,6 +9,7 @@ pub fn move_files(
file_path: PathBuf,
tag: Tag,
extra_files: [String; 8],
should_copy: bool,
) -> Result<(), Box<dyn std::error::Error>> {
let target_dir = PathBuf::from("/home/user/Desktop/coding/keks-sort");
@@ -33,7 +34,6 @@ pub fn move_files(
let _ = create_dir_all(dir_to_create);
let target = target_dir.join(artist_dir).join(album_dir.as_ref());
let should_copy = true;
if should_copy {
copy(&file_path, target.join(file_path.file_name().unwrap()))?;
} else {