(file_name)
| 67 | |
| 68 | |
| 69 | def file_name_error(file_name): |
| 70 | error_msg = None |
| 71 | if not file_name.endswith(".py"): |
| 72 | error_msg = 'File name must end with ".py"!' |
| 73 | elif "*" in file_name or len(str(file_name)) < 4: |
| 74 | error_msg = "Invalid file name!" |
| 75 | elif file_name.startswith("-"): |
| 76 | error_msg = 'File name cannot start with "-"!' |
| 77 | elif "/" in str(file_name) or "\\" in str(file_name): |
| 78 | error_msg = "File must be created in the current directory!" |
| 79 | return error_msg |
| 80 | |
| 81 | |
| 82 | def do_recording( |
no outgoing calls
no test coverage detected
searching dependent graphs…