Dump the current directory as HTML.
()
| 931 | print() |
| 932 | |
| 933 | def print_directory(): |
| 934 | """Dump the current directory as HTML.""" |
| 935 | print() |
| 936 | print("<H3>Current Working Directory:</H3>") |
| 937 | try: |
| 938 | pwd = os.getcwd() |
| 939 | except OSError as msg: |
| 940 | print("OSError:", html.escape(str(msg))) |
| 941 | else: |
| 942 | print(html.escape(pwd)) |
| 943 | print() |
| 944 | |
| 945 | def print_arguments(): |
| 946 | print() |