ame);
                ndir++;
            } else {                               <span class="c">/* It is a file */</span>
                printf("%10u %s\n", fno.fsize, fno.fname);
                nfile++;
            }
        }
        <em>f_closedir</em>(&amp;dir);
        printf("%d dirs, %d files.\n", ndir, nfile);
    } else {
        printf("Failed to open \"%s\". (%u)\n", path, res);
    }
    return res;
}
</pre>
<pre>
<span class="c">/* Recursive scan of all items in the directory