diff options
| author | Junjie Wang <[email protected]> | 2023-08-20 08:46:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-20 08:46:09 +0800 |
| commit | 166c83f372b098ef80b58253184b6d6672d2162b (patch) | |
| tree | 10da570ef8c4f19d4f8e537d1783b7482b657a74 | |
| parent | 6dd3802d0a91d85e3910488898321c235fa3fe77 (diff) | |
[DFS_V1]修复 dfs_file_stat 一个 FATFS 根目录会失败的问题 (#7940)
| -rw-r--r-- | components/dfs/dfs_v1/filesystems/elmfat/ff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/dfs_v1/filesystems/elmfat/ff.c b/components/dfs/dfs_v1/filesystems/elmfat/ff.c index 815c3d2b83..80e194d6e9 100644 --- a/components/dfs/dfs_v1/filesystems/elmfat/ff.c +++ b/components/dfs/dfs_v1/filesystems/elmfat/ff.c @@ -4746,7 +4746,7 @@ FRESULT f_stat ( res = follow_path(&dj, path); /* Follow the file path */ if (res == FR_OK) { /* Follow completed */ if (dj.fn[NSFLAG] & NS_NONAME) { /* It is origin directory */ - res = FR_INVALID_NAME; + fno->fattrib = AM_DIR; } else { /* Found an object */ if (fno) get_fileinfo(&dj, fno); } |
