wsgidav.util.is_child_uri#

wsgidav.util.is_child_uri(parent_uri: str, child_uri: str) bool[source]#

Return True, if child_uri is a child of parent_uri.

This function accounts for the fact that ‘/a/b/c’ and ‘a/b/c/’ are children of ‘/a/b’ (and also of ‘/a/b/’). Note that ‘/a/b/cd’ is NOT a child of ‘a/b/c’.