src/Core/FileManager/ArrayFilterFileSearch.php
private function AddFileToResult($directory, $file) {
        if (array_key_exists($directory, $this->FileList)) {
            array_push($this->FileList[$directory], $file);
            return;
        }
        //array_push($this->FileList, $directory);
        $this->FileList[$directory] = [$file];
    }
private function AddFileToResult($directory, $file) {
        if (array_key_exists($directory, $this->FileList)) {
            array_push($this->FileList[$directory], $file);
            return;
        }
        //array_push($this->FileList, $directory);
        $this->FileList[$directory] = [$file];
    }
private function AddFileToResult ( $ directory , $ file ) { if ( array_key_exists ( $ directory , $ this -> FileList ) ) { array_push ( $ this -> FileList [ $ directory ] , $ file ) ; return ; } //array_push($this->FileList, $directory); $ this -> FileList [ $ directory ] = [ $ file ] ; }
Add a file to the result list in the proper subarray using the directory.

@param string $directory The directory where resides the file
@param string $file The file name
Add a file to the result list in the proper subarray using the directory .