Here\'s my .rb file:
puts \"Renaming files...\" folder_path = \"/home/papuccino1/Desktop/Test\" Dir.glob(folder_path + \"/*\").sort.each do |f| filename
Don't use this pattern unless you are ready to put proper quoting around filenames:
`mv test.txt hope.txt`
Indeed, suppose instead of "hope.txt" you have a file called "foo the bar.txt", the result will not be what you expect.