public function copy($originFile, $targetFile, $override = false)
    {
        parent::copy($originFile, $targetFile, $override);

        $this->chmod($targetFile, fileperms($originFile));
    }
public function copy($originFile, $targetFile, $override = false)
    {
        parent::copy($originFile, $targetFile, $override);

        $this->chmod($targetFile, fileperms($originFile));
    }
public function copy ( $ originFile , $ targetFile , $ override = false ) { parent :: copy ( $ originFile , $ targetFile , $ override ) ; $ this -> chmod ( $ targetFile , fileperms ( $ originFile ) ) ; }
Add keeping same permissions as origin file

@see \Symfony\Component\Filesystem\Filesystem::copy()

@param string  $originFile
@param string  $targetFile
@param Boolean $override
Add keeping same permissions as origin file