public function write($name, $content)
    {
        $name = $this->getRealName($name);
        $directory = sprintf('%s%s', $this->buildDirectory, substr($name, 0, strrpos($name, '/')));
        $name = substr($name, strrpos($name, '/'));

        if (false === file_exists($directory)) {
            $this->filesystem->mkdir($directory);
        }

        file_put_contents(sprintf('%s/%s', $directory, $name), $content);
    }
public function write($name, $content)
    {
        $name = $this->getRealName($name);
        $directory = sprintf('%s%s', $this->buildDirectory, substr($name, 0, strrpos($name, '/')));
        $name = substr($name, strrpos($name, '/'));

        if (false === file_exists($directory)) {
            $this->filesystem->mkdir($directory);
        }

        file_put_contents(sprintf('%s/%s', $directory, $name), $content);
    }
public function write ( $ name , $ content ) { $ name = $ this -> getRealName ( $ name ) ; $ directory = sprintf ( '%s%s' , $ this -> buildDirectory , substr ( $ name , 0 , strrpos ( $ name , '/' ) ) ) ; $ name = substr ( $ name , strrpos ( $ name , '/' ) ) ; if ( false === file_exists ( $ directory ) ) { $ this -> filesystem -> mkdir ( $ directory ) ; } file_put_contents ( sprintf ( '%s/%s' , $ directory , $ name ) , $ content ) ; }
Writes the given file to the filesystem.

@param string $name    Name of the file
@param string $content Content of the file
Writes the given file to the filesystem .