MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / modeToString

Function modeToString

lib/vfs/fatfs.cc:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13static FatFsFilesystem* currentFatFs;
14
15static std::string modeToString(BYTE attrib)
16{
17 std::stringstream ss;
18 if (attrib & AM_RDO)
19 ss << 'R';
20 if (attrib & AM_HID)
21 ss << 'H';
22 if (attrib & AM_SYS)
23 ss << 'S';
24 if (attrib & AM_ARC)
25 ss << 'A';
26 return ss.str();
27}
28
29class FatFsFilesystem : public Filesystem
30{

Callers 1

toDirentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected