wfexs_backend.utils.contents#

Module Contents#

Functions#

GetGeneratedDirectoryContent

The signatureMethod tells whether to generate a signature and fill-in the new signature element from GeneratedDirectoryContent tuple

GetGeneratedDirectoryContentFromList

The signatureMethod tells whether to generate a signature and fill-in the new signature element from GeneratedDirectoryContent tuple

MaterializedContent2AbstractGeneratedContent

This method generates either a GeneratedContent or a GeneratedDirectoryContent from a MaterializedContent

Path2AbstractGeneratedContent

This method generates either a GeneratedContent or a GeneratedDirectoryContent from a MaterializedContent

CWLDesc2Content

copy2_nofollow

copy_nofollow

link_or_copy

link_or_copy_pathlib

link_or_symlink_pathlib

real_unlink_if_exists

bin2dataurl

Data#

API#

wfexs_backend.utils.contents.GetGeneratedDirectoryContent(thePath: wfexs_backend.common.PathLikePath, uri: LicensedURI | None = None, preferredFilename: RelPath | None = None, signatureMethod: FingerprintMethod | None = None) wfexs_backend.common.GeneratedDirectoryContent#

The signatureMethod tells whether to generate a signature and fill-in the new signature element from GeneratedDirectoryContent tuple

wfexs_backend.utils.contents.GetGeneratedDirectoryContentFromList(thePath: wfexs_backend.common.PathLikePath, theValues: Sequence[AbstractGeneratedContent], uri: LicensedURI | None = None, preferredFilename: RelPath | None = None, secondaryFiles: Sequence[AbstractGeneratedContent] | None = None, signatureMethod: FingerprintMethod | None = None) wfexs_backend.common.GeneratedDirectoryContent#

The signatureMethod tells whether to generate a signature and fill-in the new signature element from GeneratedDirectoryContent tuple

wfexs_backend.utils.contents.MaterializedContent2AbstractGeneratedContent(mat_content: wfexs_backend.common.MaterializedContent, preferredFilename: RelPath | None = None, signatureMethod: FingerprintMethod | None = nihDigester) wfexs_backend.common.AbstractGeneratedContent#

This method generates either a GeneratedContent or a GeneratedDirectoryContent from a MaterializedContent

wfexs_backend.utils.contents.Path2AbstractGeneratedContent(content: pathlib.Path, preferredFilename: RelPath | None = None, signatureMethod: FingerprintMethod | None = nihDigester) wfexs_backend.common.AbstractGeneratedContent#

This method generates either a GeneratedContent or a GeneratedDirectoryContent from a MaterializedContent

wfexs_backend.utils.contents.CWLClass2WfExS = None#
wfexs_backend.utils.contents.CWLDesc2Content(cwlDescs: Mapping[str, Any] | Sequence[Mapping[str, Any]], logger: logging.Logger, expectedOutput: ExpectedOutput | None = None, doGenerateSignatures: bool = False) Sequence[AbstractGeneratedContent]#
wfexs_backend.utils.contents.copy2_nofollow(src: wfexs_backend.common.PathLikePath, dest: wfexs_backend.common.PathLikePath) None#
wfexs_backend.utils.contents.copy_nofollow(src: wfexs_backend.common.PathLikePath, dest: wfexs_backend.common.PathLikePath) None#
wfexs_backend.utils.contents.bin2dataurl(content: bytes) wfexs_backend.common.URIType#