MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_executable

Method is_executable

Lib/http/server.py:1115–1117  ·  view source on GitHub ↗

Test whether argument path is an executable file.

(self, path)

Source from the content-addressed store, hash-verified

1113 cgi_directories = ['/cgi-bin', '/htbin']
1114
1115 def is_executable(self, path):
1116 """Test whether argument path is an executable file."""
1117 return executable(path)
1118
1119 def is_python(self, path):
1120 """Test whether argument path is a Python script."""

Callers 1

run_cgiMethod · 0.95

Calls 1

executableFunction · 0.70

Tested by

no test coverage detected