protected function get_full_path(array $subcontext, string $name) : string {
        $path = array_merge(
            [$this->path],
            [$this->get_path($subcontext, $name)]
        );

        // Join the directory together with the name.
        $filepath = implode(DIRECTORY_SEPARATOR, $path);

        // To use backslash, it must be doubled ("\\\\" PHP string).
        $separator = str_replace('\\', '\\\\', DIRECTORY_SEPARATOR);
        return preg_replace('@(' . $separator . '|/)+@', $separator, $filepath);
    }
protected function get_full_path(array $subcontext, string $name) : string {
        $path = array_merge(
            [$this->path],
            [$this->get_path($subcontext, $name)]
        );

        // Join the directory together with the name.
        $filepath = implode(DIRECTORY_SEPARATOR, $path);

        // To use backslash, it must be doubled ("\\\\" PHP string).
        $separator = str_replace('\\', '\\\\', DIRECTORY_SEPARATOR);
        return preg_replace('@(' . $separator . '|/)+@', $separator, $filepath);
    }
protected function get_full_path ( array $ subcontext , string $ name ) : string { $ path = array_merge ( [ $ this -> path ] , [ $ this -> get_path ( $ subcontext , $ name ) ] ) ; // Join the directory together with the name. $ filepath = implode ( DIRECTORY_SEPARATOR , $ path ) ; // To use backslash, it must be doubled ("\\\\" PHP string). $ separator = str_replace ( '\\' , '\\\\' , DIRECTORY_SEPARATOR ) ; return preg_replace ( '@(' . $ separator . '|/)+@' , $ separator , $ filepath ) ; }
Get the fully-qualified file path within the current context, and subcontext, using the specified filename.

@param   string[]        $subcontext The location within the current context to export this data.
@param   string          $name       The intended filename, including any extensions.
@return  string                      The fully-qualfiied file path.
Get the fully - qualified file path within the current context and subcontext using the specified filename .