mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-22 17:35:28 +00:00
minor fix for cross device linking
This commit is contained in:
parent
8f25eae1cb
commit
3f12a880e9
|
@ -67,7 +67,8 @@ class Playlist < SpotifyList
|
||||||
FileUtils.mkdir_p(strpath)
|
FileUtils.mkdir_p(strpath)
|
||||||
end
|
end
|
||||||
safe_filename = song.filename.gsub(/[\/]/, "").gsub(" ", " ")
|
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
|
else
|
||||||
song.organize_it()
|
song.organize_it()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue