def is_prefix(self, prefix, path): assert prefix and path, 'cannot call with None params' return is_prefix(prefix, path)
def has_prefix(self, prefix): assert prefix, 'cannot call with empty prefix' return is_prefix(prefix, self.path)