From da4462b46ad94254c9c650b5143ded1abd41db8b Mon Sep 17 00:00:00 2001 From: Hyperling <me@hyperling.com> Date: Wed, 19 Mar 2025 07:54:28 -0700 Subject: [PATCH] Create the new directory structure for the file. --- refactor_music_library.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/refactor_music_library.sh b/refactor_music_library.sh index c9508d5..6e46971 100755 --- a/refactor_music_library.sh +++ b/refactor_music_library.sh @@ -206,6 +206,9 @@ function migrate_music { new_file="$grandparent/$new_file" + # Create the new directories if they do not already exist. + mkdir -pv "$NEW/$grandparent/$parent" + # Move the file. new_file="$NEW/$new_file" $command -v "$file" "$new_file"