From 3f12a880e90d53a284cfb73925e4929346f02ef4 Mon Sep 17 00:00:00 2001 From: Cooper Hammond Date: Tue, 13 Apr 2021 22:39:33 -0600 Subject: [PATCH] minor fix for cross device linking --- src/glue/playlist.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glue/playlist.cr b/src/glue/playlist.cr index b7a0861..a625359 100755 --- a/src/glue/playlist.cr +++ b/src/glue/playlist.cr @@ -67,7 +67,8 @@ class Playlist < SpotifyList FileUtils.mkdir_p(strpath) end safe_filename = song.filename.gsub(/[\/]/, "").gsub(" ", " ") - File.rename("./" + song.filename, (path / safe_filename).to_s) + FileUtils.cp("./" + song.filename, (path / safe_filename).to_s) + FileUtils.rm("./" + song.filename) else song.organize_it() end