@@ 623-635 (lines=13) @@ | ||
620 | return $this->backends[$index]->getFileXAttributes( $realParams ); |
|
621 | } |
|
622 | ||
623 | public function getFileContentsMulti( array $params ) { |
|
624 | $index = $this->getReadIndexFromParams( $params ); |
|
625 | $realParams = $this->substOpPaths( $params, $this->backends[$index] ); |
|
626 | ||
627 | $contentsM = $this->backends[$index]->getFileContentsMulti( $realParams ); |
|
628 | ||
629 | $contents = []; // (path => FSFile) mapping using the proxy backend's name |
|
630 | foreach ( $contentsM as $path => $data ) { |
|
631 | $contents[$this->unsubstPaths( $path )] = $data; |
|
632 | } |
|
633 | ||
634 | return $contents; |
|
635 | } |
|
636 | ||
637 | public function getFileSha1Base36( array $params ) { |
|
638 | $index = $this->getReadIndexFromParams( $params ); |
|
@@ 658-670 (lines=13) @@ | ||
655 | return $this->backends[$index]->streamFile( $realParams ); |
|
656 | } |
|
657 | ||
658 | public function getLocalReferenceMulti( array $params ) { |
|
659 | $index = $this->getReadIndexFromParams( $params ); |
|
660 | $realParams = $this->substOpPaths( $params, $this->backends[$index] ); |
|
661 | ||
662 | $fsFilesM = $this->backends[$index]->getLocalReferenceMulti( $realParams ); |
|
663 | ||
664 | $fsFiles = []; // (path => FSFile) mapping using the proxy backend's name |
|
665 | foreach ( $fsFilesM as $path => $fsFile ) { |
|
666 | $fsFiles[$this->unsubstPaths( $path )] = $fsFile; |
|
667 | } |
|
668 | ||
669 | return $fsFiles; |
|
670 | } |
|
671 | ||
672 | public function getLocalCopyMulti( array $params ) { |
|
673 | $index = $this->getReadIndexFromParams( $params ); |
|
@@ 672-684 (lines=13) @@ | ||
669 | return $fsFiles; |
|
670 | } |
|
671 | ||
672 | public function getLocalCopyMulti( array $params ) { |
|
673 | $index = $this->getReadIndexFromParams( $params ); |
|
674 | $realParams = $this->substOpPaths( $params, $this->backends[$index] ); |
|
675 | ||
676 | $tempFilesM = $this->backends[$index]->getLocalCopyMulti( $realParams ); |
|
677 | ||
678 | $tempFiles = []; // (path => TempFSFile) mapping using the proxy backend's name |
|
679 | foreach ( $tempFilesM as $path => $tempFile ) { |
|
680 | $tempFiles[$this->unsubstPaths( $path )] = $tempFile; |
|
681 | } |
|
682 | ||
683 | return $tempFiles; |
|
684 | } |
|
685 | ||
686 | public function getFileHttpUrl( array $params ) { |
|
687 | $index = $this->getReadIndexFromParams( $params ); |