src/Builders/Writer.php
public function write($path, $contents)
    {
        if ( ! FileKeeper::exists($dir = $this->getBasePath()))
        {
            FileKeeper::directory($dir);
        }

        FileKeeper::write($path, $contents);
    }
public function write($path, $contents)
    {
        if ( ! FileKeeper::exists($dir = $this->getBasePath()))
        {
            FileKeeper::directory($dir);
        }

        FileKeeper::write($path, $contents);
    }
public function write ( $ path , $ contents ) { if ( ! FileKeeper :: exists ( $ dir = $ this -> getBasePath ( ) ) ) { FileKeeper :: directory ( $ dir ) ; } FileKeeper :: write ( $ path , $ contents ) ; }
Writes a file, also creates base directory

@param $path
@param $contents
Writes a file also creates base directory