(file_path)
| 12 | return False |
| 13 | |
| 14 | def convert_to_linux_format(file_path): |
| 15 | try: |
| 16 | with open(file_path, 'rb') as file: |
| 17 | content = file.read().replace(b'\r\n', b'\n') |
| 18 | with open(file_path, 'wb') as file: |
| 19 | file.write(content) |
| 20 | print(f"'{file_path}' converted to Linux line endings (LF).") |
| 21 | except Exception as e: |
| 22 | print(f"Error processing '{file_path}': {e}") |
| 23 | |
| 24 | for file in files: |
| 25 | if os.path.exists(file): |