I assume the order is a little different than you describe…. they get the 2nd before they file BK… I’m pretty sure that debt obtained after you file is excluded from the BK.
I’m sure there are folks doing this but it seems easier to do it the old fahpshiond way – LOTS of credit cards.