Check if the path exists and corresponds to a regular file.
(path)
| 40 | |
| 41 | |
| 42 | def is_valid_file_path(path) -> bool: |
| 43 | """Check if the path exists and corresponds to a regular file.""" |
| 44 | return os.path.exists(path) and os.path.isfile(path) |
| 45 | |
| 46 | |
| 47 | def terminal_display(data): |
no test coverage detected