+##
+## YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
+##
+## Copyright (C) 2002-2010 Aleph One Ltd.
+## for Toby Churchill Ltd and Brightstar Engineering
+##
+## Created by Charles Manning <charles@aleph1.co.uk>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License version 2 as
+## published by the Free Software Foundation.
+##
+
+
from yaffsfs import *
def yaffs_ls(dname):
isDir = True if st.st_mode & 0x4000 else False
if isFile :
- print "File ",se.d_ino, hex(perms), st.st_size, fullname
+ print "File ",se.d_ino, hex(perms), st.st_size, fullname, " times ", st.yst_atime, st.yst_ctime, st.yst_mtime
elif isDir :
- print "Dir ",se.d_ino, hex(perms), fullname
+ print "Dir ",se.d_ino, hex(perms), fullname, " times ", st.yst_atime, st.yst_ctime, st.yst_mtime
yaffs_ls(fullname)
else :
- print "Other (",hex(st.st_mode),") ",se.d_ino, hex(perms), fullname
+ print "Other (",hex(st.st_mode),") ",se.d_ino, hex(perms), fullname, " times ", st.yst_atime, st.yst_ctime, st.yst_mtime
sep = yaffs_readdir(dc)
yaffs_closedir(dc)
yaffs_close(h)
yaffs_ls(root)
-