def get_resource_inst(self, path, environ):
self._count_get_resource_inst += <NUM_LIT:1><EOL>fp = self._loc_to_file_path(path, environ)<EOL>if not os.path.exists(fp):<EOL><INDENT>return None<EOL><DEDENT>if os.path.isdir(fp):<EOL><INDENT>return FolderResource(path, environ, fp)<EOL><DEDENT>return FileResource(path, environ, fp)<EOL>
Return info dictionary for path.

        See DAVProvider.get_resource_inst()