@@ 588-595 (lines=8) @@ | ||
585 | return Config::inst()->get(get_class($this), 'legacy_filenames'); |
|
586 | } |
|
587 | ||
588 | public function getMetadata($filename, $hash, $variant = null) { |
|
589 | $fileID = $this->getFileID($filename, $hash, $variant); |
|
590 | $filesystem = $this->getFilesystemFor($fileID); |
|
591 | if($filesystem) { |
|
592 | return $filesystem->getMetadata($fileID); |
|
593 | } |
|
594 | return null; |
|
595 | } |
|
596 | ||
597 | public function getMimeType($filename, $hash, $variant = null) { |
|
598 | $fileID = $this->getFileID($filename, $hash, $variant); |
|
@@ 597-604 (lines=8) @@ | ||
594 | return null; |
|
595 | } |
|
596 | ||
597 | public function getMimeType($filename, $hash, $variant = null) { |
|
598 | $fileID = $this->getFileID($filename, $hash, $variant); |
|
599 | $filesystem = $this->getFilesystemFor($fileID); |
|
600 | if($filesystem) { |
|
601 | return $filesystem->getMimetype($fileID); |
|
602 | } |
|
603 | return null; |
|
604 | } |
|
605 | ||
606 | public function exists($filename, $hash, $variant = null) { |
|
607 | $fileID = $this->getFileID($filename, $hash, $variant); |