static function withExtension($path, $ext) { $s = new haxe_io_Path($path); $s->ext = $ext; return $s->toString(); }