def resolve_provider(self, path):
<EOL>share = None<EOL>lower_path = path.lower()<EOL>for r in self.sorted_share_list:<EOL><INDENT>if r == "<STR_LIT:/>":<EOL><INDENT>share = r<EOL>break<EOL><DEDENT>elif lower_path == r or lower_path.startswith(r + "<STR_LIT:/>"):<EOL><INDENT>share = r<EOL>break<EOL><DEDENT><DEDENT>if share is None:<EOL><INDENT>return None, None<EOL><DEDENT>return share, self.provider_map.get(share)<EOL>
Get the registered DAVProvider for a given path.

        Returns:
            tuple: (share, provider)