This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'ftools' | |
EXTS = %w{ jpg gif jpeg png } | |
DEST = '/Users/capotej/Pictures' | |
def cleanup?(p) | |
return true unless EXTS.select { |f| p.to_s.include?(f) or p.to_s.include?(f.upcase) }.empty? | |
end |