File Metadata related functions (uses extended attributes)
More...
#include <macFileMetadata.h>
|
static bool | hasData (const std::string &filename, const std::string &key) |
| Check for metadata identified by key associated with path. Key must be an UTF-8 string. More...
|
|
static bool | removeData (const std::string &filename, const std::string &key) |
| Remove metadata identified by key associated with path. Key must be an UTF-8 string. More...
|
|
static bool | updateData (const std::string &filename, const std::string &key, const void *value, size_t size) |
| Associate key and value together as metadata of path. Key must be an UTF-8 string. More...
|
|
static ByteDataPtr | getData (const std::string &filename, const std::string &key) |
| Retrieve data from the metadata identified by key associated with path. Key must be an UTF-8 string. More...
|
|
static bool | hasTag (const std::string &filename, const std::string &tagname) |
|
static bool | addTag (const std::string &filename, const std::string &tagname) |
|
static bool | removeTag (const std::string &filename, const std::string &tagname) |
|
File Metadata related functions (uses extended attributes)
Definition at line 27 of file macFileMetadata.h.
◆ addTag()
static bool macos::FileMetadata::addTag |
( |
const std::string & |
filename, |
|
|
const std::string & |
tagname |
|
) |
| |
|
static |
◆ getData()
static ByteDataPtr macos::FileMetadata::getData |
( |
const std::string & |
filename, |
|
|
const std::string & |
key |
|
) |
| |
|
static |
Retrieve data from the metadata identified by key associated with path. Key must be an UTF-8 string.
◆ hasData()
static bool macos::FileMetadata::hasData |
( |
const std::string & |
filename, |
|
|
const std::string & |
key |
|
) |
| |
|
static |
Check for metadata identified by key associated with path. Key must be an UTF-8 string.
Uses extended attributes (aka xattr)
◆ hasTag()
static bool macos::FileMetadata::hasTag |
( |
const std::string & |
filename, |
|
|
const std::string & |
tagname |
|
) |
| |
|
static |
◆ removeData()
static bool macos::FileMetadata::removeData |
( |
const std::string & |
filename, |
|
|
const std::string & |
key |
|
) |
| |
|
static |
Remove metadata identified by key associated with path. Key must be an UTF-8 string.
◆ removeTag()
static bool macos::FileMetadata::removeTag |
( |
const std::string & |
filename, |
|
|
const std::string & |
tagname |
|
) |
| |
|
static |
◆ updateData()
static bool macos::FileMetadata::updateData |
( |
const std::string & |
filename, |
|
|
const std::string & |
key, |
|
|
const void * |
value, |
|
|
size_t |
size |
|
) |
| |
|
static |
Associate key and value together as metadata of path. Key must be an UTF-8 string.
The documentation for this class was generated from the following file: