MCPcopy Create free account
hub / github.com/SmingHub/Sming / fileStats

Function fileStats

Sming/Core/FileSystem.h:344–348  ·  view source on GitHub ↗

@brief Get file statistics * @param name File name * @param stat Pointer to statistic structure to populate * @retval int Error code */

Source from the content-addressed store, hash-verified

342 * @retval int Error code
343 */
344inline int fileStats(const char* fileName, FileStat& stat)
345{
346 CHECK_FS(stat)
347 return fileSystem->stat(fileName, &stat);
348}
349
350inline int fileStats(const String& fileName, FileStat& stat)
351{

Callers

nothing calls this directly

Calls 3

fstatMethod · 0.80
statMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected