Liquid/vapor-induced reversible dynamic structural transformation of a three-dimensional Cu-based MOF to a one-dimensional MOF showing gate adsorption.