MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / print_directory

Function print_directory

tools/python-3.11.9-amd64/Lib/cgi.py:933–943  ·  view source on GitHub ↗

Dump the current directory as HTML.

()

Source from the content-addressed store, hash-verified

931 print()
932
933def 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
945def print_arguments():
946 print()

Callers 1

testFunction · 0.85

Calls 3

strFunction · 0.85
printFunction · 0.50
escapeMethod · 0.45

Tested by

no test coverage detected