public static function getPath(string $file)
  {
    $parts = explode('/', $file);
    array_pop($parts);
    return implode('/', $parts);
  }
public static function getPath(string $file)
  {
    $parts = explode('/', $file);
    array_pop($parts);
    return implode('/', $parts);
  }
public static function getPath ( string $ file ) { $ parts = explode ( '/' , $ file ) ; array_pop ( $ parts ) ; return implode ( '/' , $ parts ) ; }
Returns the file path

@param  string  $file
@return string
Returns the file path