src/Leevel/Http/File.php
public function move(string $directory, ?string $name = null): self
    {
        $target = $this->getTargetFile($directory, $name);

        $this->moveToTarget($this->getPathname(), $target);

        return new self($target);
    }
public function move(string $directory, ?string $name = null): self
    {
        $target = $this->getTargetFile($directory, $name);

        $this->moveToTarget($this->getPathname(), $target);

        return new self($target);
    }
移动文件.

@param string $directory
@param string $name

@return \Leevel\Http\File