Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/bin Modified Files: euphoria Log Message: Find.find doesn't return stuff in any order, so we have to sort the entries ourselves =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- euphoria 7 May 2005 16:15:24 -0000 1.22 +++ euphoria 7 May 2005 16:18:45 -0000 1.23 @@ -1,6 +1,6 @@ #!/usr/bin/ruby -w -# $Id: euphoria,v 1.22 2005/05/07 16:15:24 tsauerbeck Exp $ +# $Id: euphoria,v 1.23 2005/05/07 16:18:45 tsauerbeck Exp $ require "ecore" require "ecore_x" @@ -109,9 +109,9 @@ FileDialog.open(fd) do |sel| if File.directory?(sel) files = [] - Find.find(sel) { |f| files.unshift(f) if File.file?(f) } + Find.find(sel) { |f| files << f if File.file?(f) } - files.each do |f| + files.sort.each do |f| @xmms.playlist_add("file://" + f).wait end elsif File.exists?(sel) ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs