              <span class="c">/* The item is a file. */</span>
                printf("%s/%s\n", path, fno.fname);
            }
        }
        <em>f_closedir</em>(&amp;dir);
    }

    return res;
}


int main (void)
{
    FATFS fs;
    FRESULT res;
    char buff[256];


    res = <em>f_mount</em>(&amp;fs, "", 1);
    if (res == FR_OK) {
        strcpy(buff, "/");
        res = scan_files(buff);
    }

    return res;
}
</pre>
</div>


<div class="para ref">
<h4>See Also</