add a check to not create files directory if it already exists