check before folder exists before removing previous files