public function normalizeDirectoryPath($path) { $path = $this->normalizePath($path); if (is_link($path)) { $path = realpath($path); } return $path; }