MCPcopy Create free account
hub / github.com/apache/fory / is_generated_file

Function is_generated_file

compiler/fory_compiler/cli.py:60–66  ·  view source on GitHub ↗

Return True if file appears to be generated by Fory compiler.

(path: Path)

Source from the content-addressed store, hash-verified

58
59
60def is_generated_file(path: Path) -> bool:
61 """Return True if file appears to be generated by Fory compiler."""
62 try:
63 content = path.read_text(errors="ignore")
64 except OSError:
65 return False
66 return GENERATED_MARKER in content
67
68
69def scan_generated_files(root: Path, relative: bool) -> List[Path]:

Callers 2

scan_generated_filesFunction · 0.85
compile_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected