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

Method getxattr

Sming/Libraries/Spiffs/src/FileSystem.cpp:646–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646int FileSystem::getxattr(const char* path, AttributeTag tag, void* buffer, size_t size)
647{
648#ifdef SPIFFS_STORE_META
649 FS_CHECK_PATH(path)
650 spiffs_stat ss;
651 int err = SPIFFS_stat(handle(), path, &ss);
652 CHECK_RES(err)
653 SpiffsMetaBuffer smb;
654 smb.assign(ss.meta);
655 return smb.getxattr(tag, buffer, size);
656#else
657 return Error::NotSupported;
658#endif
659}
660
661int FileSystem::opendir(const char* path, DirHandle& dir)
662{

Callers 1

fgetxattrMethod · 0.45

Calls 1

assignMethod · 0.45

Tested by

no test coverage detected