I do not have residential custody of my children. Ex and I have been separated for a few years. Recently she filed for divorce.

I found out that once the divorce is finalized then she will be filing for bankruptcy. If this happens, can I file to get residential custody and have a better chance at it?