Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/bin


Modified Files:
        euphoria 


Log Message:
workaround for Find.find's weirdness
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- euphoria    6 May 2005 20:59:14 -0000       1.20
+++ euphoria    7 May 2005 10:43:22 -0000       1.21
@@ -1,6 +1,6 @@
 #!/usr/bin/ruby -w
 
-# $Id: euphoria,v 1.20 2005/05/06 20:59:14 tsauerbeck Exp $
+# $Id: euphoria,v 1.21 2005/05/07 10:43:22 tsauerbeck Exp $
 
 require "ecore"
 require "ecore_x"
@@ -220,7 +220,10 @@
                        fd = 
File.expand_path("~/.xmms2/clients/euphoria/themes/fd.eet")
                        FileDialog.open(fd) do |sel|
                                if File.directory?(sel)
-                                       Find.find(sel) do |f|
+                                       files = []
+                                       Find.find(sel) { |f| files.unshift(f) 
if File.file?(f) }
+
+                                       files.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

Reply via email to