FatFs - ฤฤฤฤลฤซฤฤฤลฤลนฤลปฤฤชฤฎฤลๅฎฤ
ฤ
ฤล
ฤฤฤฤลฤซฤฤฤลฤลนฤลปฤฤชฤฎฤลๅฎฤ
ฤ
ฤล
FatFsฤรณฤธฤฤฤลบฤซฤลผฤฎฤฤฤฤลฤซฤฤฤลฤลนฤลปฤฤชฤฤฤฉฤลฤ
ฤฎฤลๅฎฤ
ฤ
ฤลฤลปDOS/Windowsฤจฤฤลบๅลฤลฤลผฤฤฤฤฤฤ
ๅฤฤฎฤฤฉฤลบฤลฤฤฤลปฤลนฤฤฎ้ฤฤลผฤฤ
"[ลซ
็ฤ
ฤฤฉฤลฤ
็ชๅลนท:][/]ฤฤลฤลนฤลปฤฤชๅฤ/ฤฤฤฤลฤซๅฤ"
FatFsฤรณฤธฤฤฤลบฤซฤลป้ทฤ"ฤฤฤฤลฤซๅฤ(LFN)ฤฤฤล8.3ๅฝรณๅลบลนฤฤฤฤลฤซๅฤ(SFN)ฤซๅลปพๅลผลฤฤลฤ"ฤพฤฤLFNฤลปฤ(_USE_LFN > 0)ฤฎฤจฤฤไฝลผ็"จๅลนลปลฝฤซฤชฤฤพฤฤDOS/Windowsฤจฤฎ้ฤ"ฤลปฤฤฤลฤลนฤลปฤฤชฤฤฤฤฤลนฤลบฤลผฤจลซ
็ฤ
ฤฤฉฤลฤ
็ชๅลนทฤฎฤลๅฎฤลผฤฤฤฤลฤลนฤลปฤฤชฤฤฤฤฤลนฤลบฤลผฤซฤลป / ฤพฤลบฤลป \ ฤลไฝลผ็"จฤฤพฤฤลซ
็ฤ
ฤฤฉฤลฤ
็ชๅลนทฤลปฤ'0'๏ฝล'9'ฤฎไธฤ
ๅญฤฎฤฐๅญฤจฤลฤญฤลฤลผฤลๅฎฤฤ็ล็ฤฤฤลบๅ ดๅฤลปฤฤฤฉฤซฤฤฤฤฉฤลฤ
(0ฤพฤลบฤลปฤซฤลนฤลฤฤฤฤฉฤลฤ
)ฤล้ธฤลฤฤลฤพฤฤ
Nulฤ
ๅญฤจๅลๅพฤฤ
ๅญ(\0๏ฝล\x1F)ฤลปฤฤฤฤฤ
ๅฤฤฎ็ต็ซลปฤจฤฤลลชฤลญลฤฤลฤพฤฤฤฤฤฤ
ๅฤฤซๅลฤลฤฤฤ"ฤลปไธญฤซๅซฤพฤลฤฤฤ
ฤฤลบฤฤ
ฤลปฤLFNฤลผฤฤลผฤลปๅฤๅฤฤฎไธ้จฤจฤฤลฤลๅฤ
ฤลผฤฤลฤ้ลLFNฤลผฤฤลผฤลปฤฤฤฤ
ๅฤฤฎ็ต็ซลปฤจฤฤลลชฤลญลฤฤลฤพฤฤ
ฤจฤบ
ฤลผฤ(_FS_RPATH == 0)ฤฎฤจฤฤฤลปฤๅจฤลฤฎฤชฤ
ฤธฤลผฤลปฤฤลฤซฤลบฤฤฤฤลฤลนฤลปฤฤชฤฤลพลผฤ็ตลๅลปพฤฤฤฤ
ฤลผฤลๅฎฤฤลฤพฤฤOSฤลๅฤฤชฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤชฤจฤ"ฤฤ
ฤลๅลผตฤลป็"ฤฤลนฤฤพฤลบฤฤฤฤฤฤลฤลนฤลปฤฤช("."ฤ""..")ฤลปไฝลผ็"จฤลผฤฤฤพฤฤฤฤฤฤฤ
ๅฤๅ้ ญฤฎฤฤฤฤลนฤลบฤลผฤลป็"ฤลล
ฤฤลฤพฤฤฤฤฤฉฤซฤฤฤฤฉฤลฤ
็ชๅลนทฤลปๅธธฤซ0ฤซฤชฤฤพฤฤ
็ธๅลปพฤฤฤฤ
ฤลฤลๅฤ
(_FS_RPATH == 1)ฤซฤฤลบฤจฤฤฤลปฤๅลฤลฤฤฤฤฤฤลนฤลบฤลผฤฎฤล็"ฤฤซฤฤลฤลฤลล็ดรณ้
ๅลผฤฤลฤลนฤลปฤฤชฤลๅลฤลนฤฤฤฤฤฤลนฤลบฤลผฤลฤฤๅ ดๅฤลปฤซฤลบฤฤฤฤลฤลนฤลปฤฤชฤฤฤ็"ฤฤ"ๅ ดๅฤลปf_chdir้
รณฤฐฤลผลจญๅฎฤฤลฤฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤชฤฤฤซฤชฤฤพฤฤฤพฤลบฤฤฤฤ
ๅฤฤซฤฤฤฤฤฤลฤลนฤลปฤฤชฤลไฝลผ็"จฤลผฤฤฤพฤฤฤฤฤฉฤซฤฤฤฤฉฤลฤ
็ชๅลนทฤลปf_chdrive้
รณฤฐฤลผลจญๅฎฤฤลฤลบๅลฤจฤชฤฤพฤฤ
ฤฤฤฤ
ๅฤ_FS_RPATH == 0_FS_RPATH == 1
file.txtฤฤฉฤลฤ
0ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซฤซฤลนฤลฤฤฤฤฉฤลฤ
ฤฎฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซ
/file.txtฤฤฉฤลฤ
0ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซฤซฤลนฤลฤฤฤฤฉฤลฤ
ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซ
ฤฤฉฤลฤ
0ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชฤซฤลนฤลฤฤฤฤฉฤลฤ
ฤฎฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤช
2:ฤฤฉฤลฤ
2ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชฤฤฉฤลฤ
2ฤฎฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤช
2:file1.txtฤฤฉฤลฤ
2ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซฤฤฉฤลฤ
2ฤฎฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซ
2:/ฤฤฉฤลฤ
2ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤชฤฤฉฤลฤ
2ฤฎฤซฤลบฤฤฤฤลฤลนฤลปฤฤช
../file.txt็"ฤๅฤ
ลลชฤฤลฤลนฤลปฤฤชไธฤฎฤฤฤฤลฤซ
.็"ฤๅฤ
ฤฤฎฤฤลฤลนฤลปฤฤช
..็"ฤๅฤ
ฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤชฤฎลลชฤฤลฤลนฤลปฤฤช
dir1/..็"ฤๅฤ
ฤซฤลนฤลฤฤฤฤลฤลนฤลปฤฤช
/..็"ฤๅฤ
ฤซฤลบฤฤฤฤลฤลนฤลปฤฤช(ฤฤฎไธฤลปลพลผฤลฤชฤ")
Unicode API
ฤฤฤฤลฤซ้
รณฤฐฤฎๅฤๅบๅฤฎฤฤ
ฤฤฤฤฤฤลฤซๅฤฤ"ฤฤฤฤ
ๅฤฤลฤลๅฎฤฤๅลบฤฐฤฎๅลฤลปฤTCHARฤลผๅฎ็พฉฤฤลฤลฤ"ฤพฤฤลฤฤฤลฤลปcharฤฎฤจฤชฤรณฤฤ
ฤซฤชฤลฤลฤ"ฤพฤฤฤฤฤลฤ_CODE_PAGEฤลผฤลๅฎฤฤลฤ ANSI/OEMฤลฤลบฤ(SBCSฤพฤลบฤลปDBCS)ฤฎฤ
ๅญๅฤจฤฤลฤฤ
ฤลนฤลฤพฤฤฤฤฤฤลฤซๅฤๅฤๅบๅฤลUnicodeฤจฤฤฤลผฤ(LFNฤลผฤฤลผฤฤฤล_LFN_UNICODEฤล 1)ฤซฤฤลบฤจฤฤฤลปฤTCHARฤลปฤลปฤลฤฤ
ๅญ(unsigned short)ฤซๅฤฤลผฤลนฤฤฤฤฤฤ
ๅฤฤซUnicodeฤลไฝลผ็"จฤฤฤฤฤ
ฤซฤชฤฤพฤฤฤฤลฤซฤฤ LFNฤฤซๅลปพๅลผลฤจฤชฤฤANSI/OEMฤลฤลบฤฤซฤชฤ"ฤ
ๅญ(ฤลบฤจฤฤฐ โลโลชโลฤโลธโลญฤชฤฉ)ฤไฝลผ็"จฤลผฤฤฤพฤฤฤฤฎลจญๅฎฤลปฤ
ๅญๅๅฤๅบๅ้
รณฤฐฤฎฤฤลบฤลผๅลฤจฤจฤลฤลฤลบฤฤลฤลฤฐฤซฤๅฝฤ
้ลบลผฤลไธฤฤพฤฤฤชฤฤ
ฤฉฤซฤ
ๅญๅฤลๅฎ็พฉฤฤฤจฤฤฤฤลนฤฤซ็ลบฤฤฤฤ
ฤซ_T(s)ฤฤฤล_TEXT(s)ฤลฤลปฤญฤลไฝลผฤลฤลANSI/OEMฤจUnicodeฤลลชๅๅฤฤลผฤฤฤฤฤจฤลฤลผฤฤฤพฤฤ
f_open(fp, "filename.txt", FA_READ); /* ANSI/OEMๅฐ็"จฤลฤลบฤ */
f_open(fp, L"filename.txt", FA_READ); /* Unicodeๅฐ็"จฤลฤลบฤ */
f_open(fp, _T("filename.txt"), FA_READ); /* ไธฤ็"จฤลฤลบฤ */
ลซ
็ฤ
ฤฤฉฤลฤ
(ฤลฤชฤฤฤลบฤ )ฤจ็ฉ็ฤ
ฤฤฉฤลฤ
(ฤฤลฤฤ
ฤลปลล็ฝฎ)ฤฎๅลปพๅลผล
ฤฤฤฉฤซฤฤฎฤลผฤฤลผฤลปฤฤฤลฤลฤลฤฎลซ
็ฤ
ฤฤฉฤลฤ
ฤลปๅลฤล็ชๅลนทฤฎ็ฉ็ฤ
ฤฤฉฤลฤ
ฤซ1:1ฤลผ็ตฤลฤลฤฤฤฤลฤลฤ"ฤลฤ็ฉ็ฤ
ฤฤฉฤลฤ
ฤฎๅ้ ญฤฎๅลบ็"ฤซฤฤฤลฤชฤฤฤลบฤ ฤลฤลฤลฤลฤฤฤลฤพฤฤ_MULTI_PARTITIONฤซ 1ฤลฤลๅฎฤฤฤจฤๅฤฤฎลซ
็ฤ
ฤฤฉฤลฤ
ฤซๅลปพฤฤลๅๅฤฤซ็ฉ็ฤ
ฤฤฉฤลฤ
็ชๅลนทฤๅลบ็"ฤลฤลๅฎฤลผฤฤฤฤฤฤ
ฤซฤชฤฤพฤฤฤฤฎฤลผฤฤลผฤลปฤลซ
็ฤ
ฤฤฉฤลฤ
ฤจๅลบ็"ฤฎๅลปพๅลผลฤลลลผลฤฤ
บฤฤฤลบฤฤฎฤฤ
ฤลบฤ
ฤซฤลฤลนฤฤซ็ลบฤฤฤฤ
ฤซๅฎ็พฉฤฤๅลผลลฤลฤฤฤพฤฤ
ไพ:ลซ
็ฤ
ฤฤฉฤลฤ
0๏ฝล2ฤล็ฉ็ฤ
ฤฤฉฤลฤ
0(ๅบๅฎฤฤลฤฤ
ฤลป)ฤฎ3ฤลฤฎๅลบบฤลลนๅลบ็"ฤซๅฒฤๅฝฤลฤ
ลซ
็ฤ
ฤฤฉฤลฤ
3ฤล็ฉ็ฤ
ฤฤฉฤลฤ
1(ฤชฤ ฤลบฤฤ
ฤซฤฤฤลฤฤ
ฤลป)ฤซๅฒฤๅฝฤลฤๅ ดๅฤ
const PARTITION Drives[] = {
{0, 0}, /* Logical drive 0 ==> Physical drive 0, 1st partition */
{0, 1}, /* Logical drive 1 ==> Physical drive 0, 2nd partition */
{0, 2}, /* Logical drive 2 ==> Physical drive 0, 3rd partition */
{1, 0} /* Logical drive 3 ==> Physical drive 1 */
};
ลลฤฐๅลบ็"ฤลๅฎฤลไฝลผ็"จฤฤๅ ดๅฤฤลนฤฤฎ็ฤ
ฤซฤลจฤ"ลนฤฤชฤฤฤลฤฐฤชฤฤพฤฤฤ
ฤลๅฎๅลนลปลฝฤชๅลบ็"ฤลปๅลบบฤลลนๅลบ็"(0๏ฝล3)ฤฎฤลผฤ
็ฉ็ฤ
ฤฤฉฤลฤ
ฤลSFDๅฝรณๅลบลน(ๅลบ็"ฤฤ
ฤลบฤ
ฤซ็"ฤฤ)ฤฎๅ ดๅฤๅลบ็"ฤลๅฎฤลป็"ฤลล
ฤฤลฤฤ
ลลฤฐฤฎลซ
็ฤ
ฤฤฉฤลฤ
ฤลฤลฤล็ฉ็ฤ
ฤฤฉฤลฤ
ฤลปฤๅบๅฎฤฤลฤฤ
ฤลปฤลผฤชฤฤฤลฤฐฤชฤฤชฤ"ฤ
Wyszukiwarka
Podobne podstrony:
filenameFilenameFilter!0001 HTML FilenamesFileNameMapfilenameCommand, filename and directory stack substitutionFilenameFilterFileNameExtensionFilterFileNameMapfilenamehttp www emeraldinsight com Insight ViewContentServlet Filename= published emeraldfulltextarticlefilenameFileNameExtensionFilterjava io FilenameFilterjava net FileNameMapFilename substitutionwiฤcej podobnych podstron