fatfs: fix stat bug

This commit is contained in:
KYzhang_X
2022-08-01 23:14:50 +08:00
parent 3c1eac5bb0
commit 30988eba92

View File

@@ -4397,6 +4397,7 @@ FRESULT tos_f_stat (
/* Get logical drive */
res = find_volume(fs, 0);
dj.obj.fs = fs;
if (res == FR_OK) {
INIT_NAMBUF(dj.obj.fs);
res = follow_path(&dj, path); /* Follow the file path */