From 5034f94943396480aea8bdd360e746f6e094ba80 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Wed, 31 Jul 2024 10:46:19 +0200 Subject: [PATCH] feat(FC): add getFileDetails to Resources.Catalog.FileCataloClient --- src/DIRAC/Resources/Catalog/FileCatalogClient.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DIRAC/Resources/Catalog/FileCatalogClient.py b/src/DIRAC/Resources/Catalog/FileCatalogClient.py index ddd4fbf755c..d8bcd314057 100644 --- a/src/DIRAC/Resources/Catalog/FileCatalogClient.py +++ b/src/DIRAC/Resources/Catalog/FileCatalogClient.py @@ -18,6 +18,7 @@ class FileCatalogClient(FileCatalogClientBase): READ_METHODS = FileCatalogClientBase.READ_METHODS + [ "isFile", "getFileMetadata", + "getFileDetails", "getReplicas", "getReplicaStatus", "getFileSize", @@ -472,6 +473,11 @@ def getFileMetadata(self, lfns, timeout=120): """Get the metadata associated to supplied lfns""" return self._getRPC(timeout=timeout).getFileMetadata(lfns) + @checkCatalogArguments + def getFileDetails(self, lfns, timeout=120): + """Get the (user) metadata associated to supplied lfns""" + return self._getRPC(timeout=timeout).getFileDetails(lfns) + @checkCatalogArguments def getReplicaStatus(self, lfns, timeout=120): """Get the status for the supplied replicas"""