Import of a cytosolic protein into lysosomes by chaperone-mediated autophagy depends on its folding state.