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"