X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fpython%2Fexamples.py;h=349e234453c8f0e7660e3cb17a039ebff136dadc;hp=ac2c48c3a911d95c29a9cd6d963f4b1a8177b2e1;hb=f1b7e47fc0e0d58c0e4f6e298c0dd50b6f96370d;hpb=9822952036d0edf3076ccb116ef2ef6fd5166c98 diff --git a/direct/python/examples.py b/direct/python/examples.py index ac2c48c..349e234 100644 --- 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