Validation for directoryNamesToSkip