FileMetadata
DIRAC FileCatalog plugin class to manage file metadata
- class DIRAC.DataManagementSystem.DB.FileCatalogComponents.FileMetadata.FileMetadata.FileMetadata(database=None)
Bases:
object
- __init__(database=None)
- addMetadataField(pName, pType, credDict)
Add a new metadata parameter to the Metadata Database.
- deleteMetadataField(pName, credDict)
Remove metadata field
- findFilesByMetadata(**kwargs)
- getFileMetaParameters(path, credDict)
Get meta parameters for the given file
- getFileMetadataFields(credDict)
Get all the defined metadata fields
- Parameters:
credDict (dict) – client credential dictionary
- Returns:
S_OK/S_ERROR, Value is the metadata:metadata type dictionary
- getFileUserMetadata(path, credDict)
Get metadata for the given file
- removeMetadata(path, metadata, credDict)
Remove the specified metadata for the given file
- setDatabase(database)
- setFileMetaParameter(path, metaName, metaValue, credDict)
Set an meta parameter - metadata which is not used in the the data search operations