wfexs_backend.fetchers.file

wfexs_backend.fetchers.file#

Module Contents#

Functions#

fetchFile

Method to fetch contents from local contents, optionally impersonating the original CURIE (useful for cache exports)

API#

wfexs_backend.fetchers.file.fetchFile(remote_file: wfexs_backend.common.URIType, cachedFilename: wfexs_backend.common.PathLikePath, secContext: SecurityContextConfig | None = None) wfexs_backend.fetchers.ProtocolFetcherReturn#

Method to fetch contents from local contents, optionally impersonating the original CURIE (useful for cache exports)

Parameters:
  • remote_file

  • cachedFilename – Destination filename for the fetched content

  • secContext – The security context containing the credentials