Call Tidy Up Paths by Script

Is this a hidden function somewhere that we can call by script :blush:?

Maybe cleanUpPaths on the layer?

That or path.cleanUp() or path.checkConnections(). Those are called by cleanUpPaths among some other things.