in sapp/analysis_output.py [0:0]
def from_str(cls, identifier: str) -> "AnalysisOutput":
if os.path.isdir(identifier):
return cls.from_directory(identifier)
elif os.path.isfile(identifier):
return cls.from_file(identifier)
elif os.path.isdir(os.path.dirname(identifier)) and "@" in os.path.basename(
identifier
):
return cls.from_file(identifier)
else:
raise AnalysisOutputError(f"Unrecognized identifier `{identifier}`")