# GLib.filename\_from\_uri(uri)

**URL:** <https://www.ruby-forum.com/t/glib-filename-from-uri-uri/107642>\
**Category:** Ruby-Gnome 2\
**Created:** [June 24, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/glib-filename-from-uri-uri/107642 "2007-06-24T18:33:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 24, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/glib-filename-from-uri-uri/107642/1 "2007-06-24T18:33:25Z")

</div>

Hi,

the docs for GLib.filename\_from\_uri(uri) is wrong. From the docs it  
should return the filename from the uri (String), but it returns an  
Array of [filename, hostname].

Cheers  
detlef

* * *

This [SF.net](http://SF.net) email is sponsored by DB2 Express  
Download DB2 Express C - the FREE version of DB2 express and take  
control of your XML. No limits. Just data. Click to get it now.  
[http://sourceforge.net/powerbar/db2/](http://sourceforge.net/powerbar/db2/)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 26, 2007, 6:42am UTC](https://www.ruby-forum.com/t/glib-filename-from-uri-uri/107642/2 "2007-06-26T06:42:21Z")

</div>

Hi,

On Sun, 24 Jun 2007 18:32:07 +0200  
Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> the docs for GLib.filename\_from\_uri(uri) is wrong. From the docs it  
> should return the filename from the uri (String), but it returns an  
> Array of [filename, hostname].

Fixed. Thanks.

* * *

This [SF.net](http://SF.net) email is sponsored by DB2 Express  
Download DB2 Express C - the FREE version of DB2 express and take  
control of your XML. No limits. Just data. Click to get it now.  
[http://sourceforge.net/powerbar/db2/](http://sourceforge.net/powerbar/db2/)
