protected function getFullPath($path, $verify = false) {
        $full_path = $this->cleanPath($this->path_to_files . '/' . $path);

        if ($verify === true) {
            if (!file_exists($full_path) || !$this->is_valid_path($full_path)) {
                $langKey = is_dir($full_path) ? 'DIRECTORY_NOT_EXIST' : 'FILE_DOES_NOT_EXIST';
                $this->error($langKey, [$path]);
            }
        }
        return $full_path;
    }
protected function getFullPath($path, $verify = false) {
        $full_path = $this->cleanPath($this->path_to_files . '/' . $path);

        if ($verify === true) {
            if (!file_exists($full_path) || !$this->is_valid_path($full_path)) {
                $langKey = is_dir($full_path) ? 'DIRECTORY_NOT_EXIST' : 'FILE_DOES_NOT_EXIST';
                $this->error($langKey, [$path]);
            }
        }
        return $full_path;
    }
protected function getFullPath ( $ path , $ verify = false ) { $ full_path = $ this -> cleanPath ( $ this -> path_to_files . '/' . $ path ) ; if ( $ verify === true ) { if ( ! file_exists ( $ full_path ) || ! $ this -> is_valid_path ( $ full_path ) ) { $ langKey = is_dir ( $ full_path ) ? 'DIRECTORY_NOT_EXIST' : 'FILE_DOES_NOT_EXIST' ; $ this -> error ( $ langKey , [ $ path ] ) ; } } return $ full_path ; }
Return full path to file
@param string $path
@param bool $verify If file or folder exists and valid
@return mixed|string
Return full path to file