fatfs v0.06 Apr 01, 2008:
- Added f_forward(). (Tiny-FatFs) - Added string functions: fputc(), fputs(), fprintf() and fgets(). - Improved performance of f_lseek() on move to the same or following cluster.
This commit is contained in:
1 parent
e400c8c902
commit
b94c8f3bf3
72 files changed
+1804
-536
No files matched your search
+5
-5
@@ -62,15 +62,15 @@ void scan_files (char* path)
|
||||
DIR dirs;
|
||||
int i;
|
||||
|
||||
if (f_opendir(&dirs, path) == FR_OK) {
|
||||
if (f_opendir(&dirs, path) == FR_OK) {
|
||||
i = strlen(path);
|
||||
while ((f_readdir(&dirs, &finfo) == FR_OK) && finfo.fname[0]) {
|
||||
if (finfo._attrib & AM_DIR) {
|
||||
sprintf(&path[i], "/%s", &finfo.fname[0]);
|
||||
while ((f_readdir(&dirs, &finfo) == FR_OK) && finfo.fname[0]) {
|
||||
if (finfo._attrib & AM_DIR) {
|
||||
sprintf(&path[i], "/%s", &finfo.fname[0]);
|
||||
scan_files(path);
|
||||
path[i] = 0;
|
||||
} else {
|
||||
printf("%s/%s\n", path, &finfo.fname[0]);
|
||||
printf("%s/%s\n", path, &finfo.fname[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user