library/Garp/Spawn/Js/Model/File/Abstract.php
protected function _ensurePathExistence($filePath) {
        $folders = explode(DIRECTORY_SEPARATOR, $filePath);
        // discard the actual file
        array_pop($folders);
        $path = implode(DIRECTORY_SEPARATOR, $folders);
        if (file_exists($path)) {
            return;
        }
        mkdir($path, 0777, true);
    }
protected function _ensurePathExistence($filePath) {
        $folders = explode(DIRECTORY_SEPARATOR, $filePath);
        // discard the actual file
        array_pop($folders);
        $path = implode(DIRECTORY_SEPARATOR, $folders);
        if (file_exists($path)) {
            return;
        }
        mkdir($path, 0777, true);
    }
protected function _ensurePathExistence ( $ filePath ) { $ folders = explode ( DIRECTORY_SEPARATOR , $ filePath ) ; // discard the actual file array_pop ( $ folders ) ; $ path = implode ( DIRECTORY_SEPARATOR , $ folders ) ; if ( file_exists ( $ path ) ) { return ; } mkdir ( $ path , 0777 , true ) ; }
Make sure the directory structure exists before writing the file
@return Void
Make sure the directory structure exists before writing the file