This file contains 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
# encoding: utf-8 | |
# Ruby script to shuffle files, pass the folder name as the first argument (necessary), | |
# and -f after folder name if you want to really sort them | |
# example: ruby ruby_shuffle_files.rb my_folder -f | |
folder = ARGV[0] + "/" | |
loop_times = (ARGV[1] != nil && ARGV[1] == "-f") ? 3 : 1 | |
qtd_files = 0 |
NewerOlder