code: public static function info($path)
    {
      $p = pathinfo($path);
      if(empty($p["filename"]))
      {
        $p["filename"] = $p["basename"];
        unset($p["extension"]);
      }
      if(!empty($p["extension"]))
      {
        $p["extension"] = ".{$p["extension"]}";
      }
  
      return $p + ["extension" => ""];
    }
docs: Creates fixed pathinfo structure
  
  Meaning, "$dirname/$filename$extension" eq. rtrim($path, "\\/").
  
  Contrary to the {@see \pathinfo() pathinfo()}, all members of the structure always set.
  
  @param string $path The path to get info on.
  @return array Fixed pathinfo structure.