/** * Checks whether a given path name points to a real directory. * Ensures that the path name is not "." or ".." * * @param string $name The name of the purported directory * @param string $path The path in which this directory is purportedly located * * @return bool */ function is_dir($name, $path) { return $name != '.' && $name != '..' && is_dir(suio::tslash($path) . $name); }