Updated Directory.php