Exemple #1
0
 /**
  * Get an associative array containing information about a file in the local filesystem.
  *
  * @param string $path absolute local filesystem path
  * @param $ext Mixed: the file extension, or true to extract it from the filename.
  *             Set it to false to ignore the extension.
  *
  * @return array
  * @deprecated since 1.19
  */
 static function getPropsFromPath($path, $ext = true)
 {
     wfDebug(__METHOD__ . ": Getting file info for {$path}\n");
     wfDeprecated(__METHOD__, '1.19');
     $fsFile = new FSFile($path);
     return $fsFile->getProps();
 }