the st.st_mode returning 0 for a symlink was caused by:
result = yaffs_stat(fullname,byref(st))
been used insted of:
result = yaffs_lstat(fullname,byref(st))
changing to the latter fixed this bug.
Everything works.
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
se = sep.contents
fullname = dname + se.d_name
st = yaffs_stat_struct()
- result = yaffs_stat(fullname,byref(st))
+ result = yaffs_lstat(fullname,byref(st))
perms = st.st_mode & 0777
ftype = st.st_mode & yaffs_S_IFMT
isFile = True if ftype == yaffs_S_IFREG else False