projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add yaffs_utime and related code
[yaffs2.git]
/
direct
/
python
/
examples.py
diff --git
a/direct/python/examples.py
b/direct/python/examples.py
index 155e770036410c190bc943d57c7e4e3ed3b596b5..68fc95c8306252902ccb0b65a616756fb264c7ab 100644
(file)
--- a/
direct/python/examples.py
+++ b/
direct/python/examples.py
@@
-30,12
+30,12
@@
def yaffs_ls(dname):
isDir = True if st.st_mode & 0x4000 else False
if isFile :
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 :
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 :
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)
sep = yaffs_readdir(dc)
yaffs_closedir(dc)
@@
-96,4
+96,3
@@
h = yaffs_open(root+"/dd/111",66,0666)
yaffs_close(h)
yaffs_ls(root)
yaffs_close(h)
yaffs_ls(root)
-