diff direct/python/examples.py @ 322:d326b86a50d5

Add more info to python test
author charles <charles>
date Thu, 03 Dec 2009 03:28:09 +0000
parents acc06403a0bc
children bd02b2533ec8
line wrap: on
line diff
--- a/direct/python/examples.py
+++ b/direct/python/examples.py
@@ -17,10 +17,12 @@ def yaffs_ls(dname):
 
             if isFile :
                 print "File ",se.d_ino, hex(perms), st.st_size, fullname
-            if isDir :
+            elif isDir :
                 print "Dir  ",se.d_ino, hex(perms), fullname
                 yaffs_ls(fullname)
-                
+            else :
+            	print "Other (",hex(st.st_mode),") ",se.d_ino, hex(perms), fullname
+
             sep = yaffs_readdir(dc)
         yaffs_closedir(dc)
         return 0