Create and destroy directories for data