Gaufrette\Adapter\PhpseclibSftp::createFile PHP Method

createFile() public method

public createFile ( $key, Gaufrette\Filesystem $filesystem )
$filesystem Gaufrette\Filesystem
    public function createFile($key, Filesystem $filesystem)
    {
        $file = new File($key, $filesystem);
        $stat = $this->sftp->stat($this->computePath($key));
        if (isset($stat['size'])) {
            $file->setSize($stat['size']);
        }
        return $file;
    }