Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (17 sloc) 309 Bytes
#!/usr/bin/env ./
# Determine whether a directory exists
import cgitb
print "Content-Type: text/plain\r"
print "\r"
import sys
import cgi
import os
form_data = cgi.FieldStorage()
path = form_data["path"].value
if os.path.exists(path):
print "OK"
print "Failure"
Jump to Line
Something went wrong with that request. Please try again.