JamesMoss\Flywheel\NestedRepository::write PHP Method

write() protected method

protected write ( $path, $contents )
    protected function write($path, $contents)
    {
        // ensure path exists by making directories beforehand
        if (!file_exists(dirname($path))) {
            mkdir(dirname($path), 0777, true);
        }
        return parent::write($path, $contents);
    }