Initialising the directory during the clear instead of deleting it