summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_readdir.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-14 23:34:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-14 23:34:37 +0000
commit6903177bb0e49e1771de6a1f0a2cba21eaa123be (patch)
tree3f25334f1ce2e64517ab8288a3371cd5483bcc03 /nuttx/fs/fs_readdir.c
parent1df59ef5f64b5af480e4048e904f65d0682fc56b (diff)
downloadpx4-nuttx-6903177bb0e49e1771de6a1f0a2cba21eaa123be.tar.gz
px4-nuttx-6903177bb0e49e1771de6a1f0a2cba21eaa123be.tar.bz2
px4-nuttx-6903177bb0e49e1771de6a1f0a2cba21eaa123be.zip
Add 'ls' command to nsh
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@63 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_readdir.c')
-rw-r--r--nuttx/fs/fs_readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fs_readdir.c b/nuttx/fs/fs_readdir.c
index 40f4f1747..034770c80 100644
--- a/nuttx/fs/fs_readdir.c
+++ b/nuttx/fs/fs_readdir.c
@@ -115,7 +115,7 @@ FAR struct dirent *readdir(DIR *dirp)
if (idir->next->i_child || !idir->next->i_ops)
{
- idir->dir.d_type |= DTYPE_FILE;
+ idir->dir.d_type |= DTYPE_DIRECTORY;
}
/* Now get the inode to vist next time that readdir() is called */