You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
song = "song.mp3"
artist = "artist name"
Mp3Info.open(song) { |mp3info|
puts mp3info
# correctly shows info
}
Dir.mkdir(artist) unless File.exists?(artist)
File.rename("./#{song}", "./#{artist}/#{song}"
# moving file to a subfolder named according to artist name
Last command outputs:
in `rename': Permission denied @ sys_fail2 (Err no::EACCES)
If I remove the MP3Info block completely everything works and I see no errors.
Same if I use Mp3Info on the file after moving the file to the new folder.
Can it be due to the file still being in use by Mp3Info when trying to move it?
Last command outputs:
If I remove the MP3Info block completely everything works and I see no errors.
Same if I use Mp3Info on the file after moving the file to the new folder.
Can it be due to the file still being in use by Mp3Info when trying to move it?
Don't know if it's related to #41
How to fix this?
Thanks
The text was updated successfully, but these errors were encountered: