Implement directoryExists