Skip to content

Commit

Permalink
feat(FC): add getFileDetails to Resources.Catalog.FileCataloClient
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Jul 31, 2024
1 parent d9d8e11 commit bca2afa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DIRAC/Resources/Catalog/FileCatalogClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class FileCatalogClient(FileCatalogClientBase):
READ_METHODS = FileCatalogClientBase.READ_METHODS + [
"isFile",
"getFileMetadata",
"getFileDetails",
"getReplicas",
"getReplicaStatus",
"getFileSize",
Expand Down Expand Up @@ -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 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"""
Expand Down

0 comments on commit bca2afa

Please sign in to comment.