(path, max, optional=False, ignoreEmptyFilesAndNewLines=False)
| 142 | return ok, text |
| 143 | |
| 144 | def check_text(path, max, optional=False, ignoreEmptyFilesAndNewLines=False): |
| 145 | try: |
| 146 | return done(path, check_raw(path, max, ignoreEmptyFilesAndNewLines)[0]) |
| 147 | except FileNotFoundError as e: |
| 148 | if optional: |
| 149 | return True |
| 150 | error(path, 'not exists') |
| 151 | return False |
| 152 | |
| 153 | def check_url(path, ignoreEmptyFilesAndNewLines=False): |
| 154 | if not os.path.exists(path): |
no test coverage detected