Transferring assets to someone else before filing will not put your assets beyond the reach of creditors and bankruptcy trustees. Such a transfer could lead to the court denying the discharge of your debt.
A trustee can recover assets transferred within two years of the filing where the debtor did not get reasonably equivalent value for the asset, or where the transfer was made with intent to hinder creditors.