Create directoryCheck