Moved urlExist to file helper class.

This commit is contained in:
2022-06-11 19:11:00 +02:00
parent 9f04566c81
commit 9e4a6e0c53
9 changed files with 74 additions and 96 deletions

View File

@@ -627,6 +627,22 @@ trait Utilities
return FileHelper::getPath($type, $target, $fileType, $key, $default, $createIfNotSet);
}
/**
* Check if file exist
*
* @param string $path The url/path to check
*
* @return bool If exist true
*
* @since 3.0.9
*
* @deprecated 4.0 - Use FileHelper::exists($path);
*/
public static function urlExists($path)
{
return FileHelper::exists($path);
}
/**
* Set the component option
*