public function create($filename)
    {
        if ($this->exists($filename)) {
            $message = sprintf('Failed to create "%s" because its path is not accessible.', $filename);

            throw new IOException($filename, $message);
        }

        return $this->makeFile($filename, '');
    }
public function create($filename)
    {
        if ($this->exists($filename)) {
            $message = sprintf('Failed to create "%s" because its path is not accessible.', $filename);

            throw new IOException($filename, $message);
        }

        return $this->makeFile($filename, '');
    }
public function create ( $ filename ) { if ( $ this -> exists ( $ filename ) ) { $ message = sprintf ( 'Failed to create "%s" because its path is not accessible.' , $ filename ) ; throw new IOException ( $ filename , $ message ) ; } return $ this -> makeFile ( $ filename , '' ) ; }
Makes a File out of a new file.

@see exists()

@param string $filename

@return File

@throws IOException If the path isn't accessible.
Makes a File out of a new file .