pyslk.set_tag#
- pyslk.set_tag(path_or_id: str | int, metadata: dict, recursive: bool = False) dict | None #
Apply metadata to the namespace and child resources
- Parameters:
path_or_id (
str
orint
) – search id or gns path of resources to retrievemetadata (
dict
) – dict that holds as keys “[metadata schema].[field]” and as values the metadata valuesrecursive (
bool
) – use the -R flag to tag recursively, Default: False
- Returns:
new metadata of the target files
- Return type:
dict
orNone