count_lines_file
Count lines in a file from its absolute path. Uses splitlines semantics, so a trailing newline adds no empty line.
Instructions
Count lines in a file (str.splitlines semantics: a trailing newline adds no empty line).
Args:
file_path: Absolute path to the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |