forked from len0rd/rockbox
add attribute and size to readdir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@503 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9566349db6
commit
bdc3ff0b08
1 changed files with 6 additions and 0 deletions
|
|
@ -82,5 +82,11 @@ struct dirent *readdir (
|
|||
if (_findnext (dir->handle, &fd) == -1)
|
||||
return 0;
|
||||
memcpy (dir->fd.d_name, fd.name, 256);
|
||||
|
||||
dir->fd.attribute = fd.attrib ;
|
||||
dir->fd.size = fd.size;
|
||||
dir->fd.startcluster = 0 ;
|
||||
|
||||
|
||||
return &dir->fd;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue