MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / IsFAT

Function IsFAT

Libraries/unrar/filefn.cpp:178–186  ·  view source on GitHub ↗

Return 'true' for FAT and FAT32, so we can adjust the maximum supported file size to 4 GB for these file systems.

Source from the content-addressed store, hash-verified

176// Return 'true' for FAT and FAT32, so we can adjust the maximum supported
177// file size to 4 GB for these file systems.
178bool IsFAT(const wchar *Name)
179{
180 wchar Root[NM];
181 GetPathRoot(Name,Root,ASIZE(Root));
182 wchar FileSystem[MAX_PATH+1];
183 if (GetVolumeInformation(Root,NULL,0,NULL,NULL,NULL,FileSystem,ASIZE(FileSystem)))
184 return wcscmp(FileSystem,L"FAT")==0 || wcscmp(FileSystem,L"FAT32")==0;
185 return false;
186}
187#endif
188
189

Callers 1

ExtractCurrentFileMethod · 0.85

Calls 1

GetPathRootFunction · 0.85

Tested by

no test coverage detected