Adding a check to on directory folder