cleanAndCreateDirectory