http://elm-chan.org/fsw/ff/doc/stat.html
Parameters path
ตัวชี้ไปยัง the null-terminated string ที่ระบุ the object เพื่อรับข้อมูลของมัน. The object ต้องไม่เป็น the root direcotry.
fno
ตัวชี้ไปยัง the blank FILINFO structure เพื่อเก็บ the information of the object. เซ็ต null pointer ถ้าข้อมูลนี้ไม่ถูก
ต้องการ.
Return ValuesFR_OK, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_NO_FILE, FR_NO_PATH, FR_INVALID_NAME, FR_INVALID_DRIVE, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT, FR_NOT_ENOUGH_CORE
DescriptionThe f_stat function ตรวจสอบการมีอยู่ของ a file or sub-directory ใน the directory. ถ้ามันไม่มีอยู่, the function ส่งคืนกลับด้วย FR_NO_FILE. ถ้ามันมีอยู่, the function ส่งคืนกลับด้วย FR_OK และ the informations เกี่ยวกับ the object, size, timestamp and attribute, ถูกเก็บไปยัง the file information structure. สำหรับรายละเอียดของ the file information, ดูที่ the FILINFO structure และ f_readdir function.
โปรดทราบว่าข้อมูลไฟล์มาจากข้อมูลเมตาในไดเร็กทอรี หากไฟล์ถูกเปิดและแก้ไขแล้ว ไฟล์จะจำเป็นต้องซิงค์หรือปิดเพื่อรับข้อมูลไฟล์ล่าสุด
QuickInfoมีให้ใช้งานเมื่อ FF_FS_MINIMIZE == 0.
Example(ตัวอย่างโค้ดดูในลิ้งค์เอานะครับ)
Referencesf_opendir, f_readdir, FILINFO