Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # analayzer cleaner
- # delete files in folder which size is less than input value
- min_file_size = ARGV.last
- count = 0
- Dir['*/*.sps'].each do |file|
- if File.size(file) < min_file_size.to_i
- File.delete(file)
- count += 1
- end
- end
- puts "#{count} deletions"
Add Comment
Please, Sign In to add comment