From 5c83969ce27d915f53675eecff8ecf3ab2d87c29 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 24 Apr 2022 13:37:14 -0400 Subject: [PATCH] Copy non-FLAC files instead of moving them --- bin/flac2pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/flac2pod b/bin/flac2pod index 59995d9..3db117c 100755 --- a/bin/flac2pod +++ b/bin/flac2pod @@ -6,7 +6,7 @@ from argparse import ArgumentParser from mutagen.flac import FLAC, FLACNoHeaderError from os import cpu_count, path, walk from pathlib import Path -from shutil import move +from shutil import copy from subprocess import check_output, Popen from sys import exit as s_exit from time import sleep @@ -91,7 +91,7 @@ def scan_destination_convert(): _rgpeak = None except FLACNoHeaderError: print(f"[{_file}] Not a FLAC file, copying...") - move(f"{_file}", f"{_file.replace(path.expanduser(source), path.expanduser(destination))}") + copy(f"{_file}", f"{_file.replace(path.expanduser(source), path.expanduser(destination))}") _rggain, _rgpeak = None, None # determine ffmpeg arguments if args.bake and _rggain is not None: