Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.dav_provider.DAVProvider.getResourceInst

DAVProvider.getResourceInst(path, environ)[source]

Return a _DAVResource object for path.

Should be called only once per request and resource:

res = provider.getResourceInst(path, environ)
if res and not res.isCollection:
    print(res.getContentType())

If <path> does not exist, None is returned. <environ> may be used by the provider to implement per-request caching.

See _DAVResource for details.

This method MUST be implemented.