examples/cli/instant_download_server.rb in s33r-0.5.3 vs examples/cli/instant_download_server.rb in s33r-0.5.4
- old
+ new
@@ -32,10 +32,10 @@
# Get a list of files to upload from the user.
pattern = readline("Enter a pattern which matches the files you want to upload\n\
e.g. /home/pete/photos/*.jpg will upload all *.jpg files in /home/pete/photos\n\
(basically, its a Ruby glob pattern which will return files):\n", true)
-files = Dir[pattern]
+files = Dir[pattern].sort
# Get an S3 client.
client = Client.new(:access => accesskey, :secret => secretaccesskey,
:persistent => true)