public function ensureParentDirectories($path)
    {
        $object = $this->cache[$path];

        while ($object['dirname'] !== '' && ! isset($this->cache[$object['dirname']])) {
            $object = Util::pathinfo($object['dirname']);
            $object['type'] = 'dir';
            $this->cache[$object['path']] = $object;
        }
    }
public function ensureParentDirectories($path)
    {
        $object = $this->cache[$path];

        while ($object['dirname'] !== '' && ! isset($this->cache[$object['dirname']])) {
            $object = Util::pathinfo($object['dirname']);
            $object['type'] = 'dir';
            $this->cache[$object['path']] = $object;
        }
    }
public function ensureParentDirectories ( $ path ) { $ object = $ this -> cache [ $ path ] ; while ( $ object [ 'dirname' ] !== '' && ! isset ( $ this -> cache [ $ object [ 'dirname' ] ] ) ) { $ object = Util :: pathinfo ( $ object [ 'dirname' ] ) ; $ object [ 'type' ] = 'dir' ; $ this -> cache [ $ object [ 'path' ] ] = $ object ; } }
Ensure parent directories of an object.

@param string $path object path
Ensure parent directories of an object .