src/Leevel/Http/File.php
protected function getTargetFile(string $directory, ?string $name = null): string
    {
        create_directory($directory);

        $target = rtrim($directory, '/\\').\DIRECTORY_SEPARATOR.
            ($name ?? $this->getBasename());

        return $target;
    }
protected function getTargetFile(string $directory, ?string $name = null): string
    {
        create_directory($directory);

        $target = rtrim($directory, '/\\').\DIRECTORY_SEPARATOR.
            ($name ?? $this->getBasename());

        return $target;
    }
获取目标文件.

@param string $directory
@param string $name

@return string