Ok this is driving me crazy:
`ls #{\"/media/music/Miles Davis\"}`
fails because of the space between \"Miles\" and \"Davis\"
Say I writ
Use require 'shellwords' and Shellwords.escape, which will fix this sort of stuff for you:
require 'shellwords'
Shellwords.escape
http://apidock.com/ruby/Shellwords/shellescape