lib/lhj/command/rename_image.rb in lhj-tools-0.1.1 vs lib/lhj/command/rename_image.rb in lhj-tools-0.1.2

- old
+ new

@@ -5,10 +5,10 @@ def run rename end def rename - folder_path = "/Users/lihaijian/Downloads/ss" + folder_path = "~/Downloads/ss" Dir.glob("#{folder_path}/**/*.{png}").sort.each do |f| filename = File.basename(f, File.extname(f)) File.rename(f, "#{folder_path}/aomi_soldout_" + filename.capitalize + File.extname(f)) end end