check folder exists before touching it