/** * Get properties of a file with a given virtual URL/storage path. * Properties should ultimately be obtained via FSFile::getProps(). * * @param string $virtualUrl * @return array */ public function getFileProps($virtualUrl) { $fsFile = $this->getLocalReference($virtualUrl); $mwProps = new MWFileProps(MimeMagic::singleton()); if ($fsFile) { $props = $mwProps->getPropsFromPath($fsFile->getPath(), true); } else { $props = $mwProps->newPlaceholderProps(); } return $props; }