private function ensureFileIndexes()
    {
        $indexKey = ['filename' => 1, 'uploadDate' => 1];
        foreach ($this->listIndexes() as $index) {
            if ($index['key'] === $indexKey) {
                return;
            }
        }

        $this->createIndex($indexKey);
    }
private function ensureFileIndexes()
    {
        $indexKey = ['filename' => 1, 'uploadDate' => 1];
        foreach ($this->listIndexes() as $index) {
            if ($index['key'] === $indexKey) {
                return;
            }
        }

        $this->createIndex($indexKey);
    }
private function ensureFileIndexes ( ) { $ indexKey = [ 'filename' => 1 , 'uploadDate' => 1 ] ; foreach ( $ this -> listIndexes ( ) as $ index ) { if ( $ index [ 'key' ] === $ indexKey ) { return ; } } $ this -> createIndex ( $ indexKey ) ; }
Ensures indexes at file collection.
Ensures indexes at file collection .