gist: 37241 Download_button fork
public
Public Clone URL: git://gist.github.com/37241.git
adult_file_renamer.rb
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby
require "pathname"
 
PATH = "/Users/javascripter/Pictures/adult/"
Dir.chdir(PATH)
Pathname.glob("*").each_with_index {|file, i|
  file.rename(i.to_s + file.extname)
}
 

Owner

javascripter

Revisions