8 9 10 11 12 13 14 15 16
# File 'lib/device/library/mac.rb', line 8 def get_device_root_dir(volume_name) %w(/Volumes).each do |mount_root| path = File.join(mount_root, volume_name) if File.directory?(path) return path end end nil end