Home | History | Annotate | Download | only in webob

Lines Matching full:path

120     def __init__(self, path, index_page='index.html', hide_index_with_redirect=False,
122 self.path = os.path.abspath(path)
123 if not self.path.endswith(os.path.sep):
124 self.path += os.path.sep
125 if not os.path.isdir(self.path):
127 "Path does not exist or is not directory: %r" % self.path)
132 def make_fileapp(self, path):
133 return FileApp(path, **self.fileapp_kw)
137 path = os.path.abspath(os.path.join(self.path,
139 if os.path.isdir(path) and self.index_page:
140 return self.index(req, path)
142 and path.endswith(os.path.sep + self.index_page)):
150 if not os.path.isfile(path):
151 return exc.HTTPNotFound(comment=path)
152 elif not path.startswith(self.path):
155 return self.make_fileapp(path)
157 def index(self, req, path):
158 index_path = os.path.join(path, self.index_page)
159 if not os.path.isfile(index_path):