creocoder / yii2-flysystem

The Flysystem integration for the Yii framework.
Other
283 stars 76 forks source link

Bug? cant copy file /tmp/phpBlablabla #13

Open maxyc opened 8 years ago

maxyc commented 8 years ago

League\Flysystem\FileNotFoundException File not found at path: tmp/phpkiLfKz

public function copy($path, $newpath)
    {
        $path = Util::normalizePath($path);  // <-- bug here
        $newpath = Util::normalizePath($newpath);
        $this->assertPresent($path);
        $this->assertAbsent($newpath);

        return $this->getAdapter()->copy($path, $newpath);
    }
maxyc commented 8 years ago

file