public function file_exists($contextid, $component, $filearea, $itemid, $filepath, $filename) {
        $filepath = clean_param($filepath, PARAM_PATH);
        $filename = clean_param($filename, PARAM_FILE);

        if ($filename === '') {
            $filename = '.';
        }

        $pathnamehash = $this->get_pathname_hash($contextid, $component, $filearea, $itemid, $filepath, $filename);
        return $this->file_exists_by_hash($pathnamehash);
    }
public function file_exists($contextid, $component, $filearea, $itemid, $filepath, $filename) {
        $filepath = clean_param($filepath, PARAM_PATH);
        $filename = clean_param($filename, PARAM_FILE);

        if ($filename === '') {
            $filename = '.';
        }

        $pathnamehash = $this->get_pathname_hash($contextid, $component, $filearea, $itemid, $filepath, $filename);
        return $this->file_exists_by_hash($pathnamehash);
    }
public function file_exists ( $ contextid , $ component , $ filearea , $ itemid , $ filepath , $ filename ) { $ filepath = clean_param ( $ filepath , PARAM_PATH ) ; $ filename = clean_param ( $ filename , PARAM_FILE ) ; if ( $ filename === '' ) { $ filename = '.' ; } $ pathnamehash = $ this -> get_pathname_hash ( $ contextid , $ component , $ filearea , $ itemid , $ filepath , $ filename ) ; return $ this -> file_exists_by_hash ( $ pathnamehash ) ; }
Does this file exist?

@param int $contextid context ID
@param string $component component
@param string $filearea file area
@param int $itemid item ID
@param string $filepath file path
@param string $filename file name
@return bool
Does this file exist?