def static_filename(self, repo: str, branch: str, relative_path: Union[str, Path], *,<EOL>depth: DepthDefinitionType=<NUM_LIT:1>,<EOL>reference: ReferenceDefinitionType=None<EOL>) -> Path:
self.validate_repo_url(repo)<EOL>depth = self.validate_depth(depth)<EOL>reference = self.validate_reference(reference)<EOL>if not isinstance(relative_path, Path):<EOL><INDENT>relative_path = Path(relative_path)<EOL><DEDENT>_, repo_path = self.get_files(repo, branch, depth=depth, reference=reference)<EOL>result = repo_path / relative_path<EOL>result = result.resolve()<EOL>if repo_path not in result.parents:<EOL><INDENT>raise FileOutOfRangeError(f"<STR_LIT>")<EOL><DEDENT>if not result.exists():<EOL><INDENT>raise FileNotFoundError(f"<STR_LIT>")<EOL><DEDENT>logger.info("<STR_LIT>", relative_path, result)<EOL>return result<EOL>
Returns an absolute path to where a file from the repo was cloned to.

:param repo: Repo URL
:param branch: Branch name
:param relative_path: Relative path to the requested file
:param depth: See :meth:`run`
:param reference: See :meth:`run`

:return: Absolute path to the file in the target repository

:raise FileOutOfRangeError: If the relative path leads out of the repository path
:raise FileNotFoundError: If the file doesn't exist in the repository.