Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 959720afbc
Fetching contributors…

Cannot retrieve contributors at this time

executable file 47 lines (38 sloc) 0.979 kB
#!/usr/bin/env ruby
$:.unshift("lib/")
#require 'rubygems'
#require 'ruby-debug'
require "lib/mp3info"
require "lib/levenshtein"
require "lib/transforms"
require "lib/folder"
@@unknown_tag = Array.new
@@all_artists = Array.new
if $0 == __FILE__
path = ARGV[0]
@destination = ARGV[1] || "/Volumes/Music/"
@enact = (ARGV[2] == "enact")
#ARGV.each do |path|
files = File.join(path, "**", "*")
Dir.glob(files).each do |folder|
if File.directory?(folder)
begin
puts "Opening: #{folder}"
music_folder = Folder.new(folder)
if music_folder.complete?
music_folder.migrate_to(@destination, @enact)
end
end rescue Mp3InfoError
end
end
#end
if ARGV.length == 0
puts "No file given"
end
puts "*** Scan complete ***"
if @@unknown_tag.length > 0
@@unknown_tag.each do |folder|
puts "#{folder} has unknown characters. You should look into that"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.