Back to Folder class

Method exists

public static bool
exists
(mixed $path)
Wrapper for the standard file_exists function
Parameters
  • string $path Folder name relative to installation dir
Returns
  • bool True if path is a folder
Since
  • 1.7.0
Class: Folder
Project: Joomla

Method exists - Source code

/**
 * Wrapper for the standard file_exists function
 *
 * @param   string  $path  Folder name relative to installation dir
 *
 * @return  boolean  True if path is a folder
 *
 * @since   1.7.0
 */
public static function exists($path)
{
    return is_dir(Path::clean($path));
}