public function createFile($fileName, $preserve = false)
        {
            $this->initRunFolder();

            $fileInfo = new \SplFileInfo($this->tmpRunFolder . DIRECTORY_SEPARATOR . $fileName);

            $this->filesystem->touch($fileInfo);

            $this->files[] = array(
                'file'  => $fileInfo,
                'preserve'  => $preserve
            );

            $this->filesystem->chmod($fileInfo, 0600);

            return $fileInfo;
        }
public function createFile($fileName, $preserve = false)
        {
            $this->initRunFolder();

            $fileInfo = new \SplFileInfo($this->tmpRunFolder . DIRECTORY_SEPARATOR . $fileName);

            $this->filesystem->touch($fileInfo);

            $this->files[] = array(
                'file'  => $fileInfo,
                'preserve'  => $preserve
            );

            $this->filesystem->chmod($fileInfo, 0600);

            return $fileInfo;
        }
public function createFile ( $ fileName , $ preserve = false ) { $ this -> initRunFolder ( ) ; $ fileInfo = new \ SplFileInfo ( $ this -> tmpRunFolder . DIRECTORY_SEPARATOR . $ fileName ) ; $ this -> filesystem -> touch ( $ fileInfo ) ; $ this -> files [ ] = array ( 'file' => $ fileInfo , 'preserve' => $ preserve ) ; $ this -> filesystem -> chmod ( $ fileInfo , 0600 ) ; return $ fileInfo ; }
Creates named temporary file

@param $fileName
@param bool $preserve
@return \SplFileInfo
@throws \Exception
Creates named temporary file