# Find\_enclosing\_mountpoint docs don't match reality

**URL:** <https://www.ruby-forum.com/t/find-enclosing-mountpoint-docs-dont-match-reality/211641>\
**Category:** Ruby-Gnome 2\
**Created:** [September 9, 2011, 3:32pm UTC](https://www.ruby-forum.com/t/find-enclosing-mountpoint-docs-dont-match-reality/211641 "2011-09-09T15:32:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 9, 2011, 3:32pm UTC](https://www.ruby-forum.com/t/find-enclosing-mountpoint-docs-dont-match-reality/211641/1 "2011-09-09T15:32:37Z")

</div>

Hello.

From the docs:

find\_enclosing\_mount(cancellable = nil)

```
Gets a GLib::Mount for the GLib::File.

If the file doesnâ€™t have a mount (for example, possibly a remote

```

share), a GLib::IO::NotFoundError will be raised.

This would imply that remote shares don’t have a mountpoiont. The  
opposite is observed:

$ irb -rubygems -rgio2  
irb(main):001:0\> local = GLib::File.new\_for\_commandline\_arg  
“/somewhere”  
=\> #\<#Class:0x7f79e3627f50:0x7f79e3627e88 ptr=0xdc88c0\>  
irb(main):002:0\> remote = GLib::File.new\_for\_commandline\_arg  
“smb://server/share”  
=\> #\<#Class:0x7f79e361ce98:0x7f79e361cdd0 ptr=0xde9e70\>  
irb(main):003:0\> local.find\_enclosing\_mount  
GLib::IO::NotFoundError: Containing mount does not exist  
from (irb):3:in `find_enclosing_mount' from (irb):3 irb(main):004:0> remote.find_enclosing_mount GLib::IO::NotMountedError: The specified location is not mounted from (irb):4:in`find\_enclosing\_mount’  
from (irb):4  
irb(main):005:0\>

---

<div class="post-metadata">

**Author:** ![Michal\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/779978/32.png) [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Post date:** [September 10, 2011, 12:32pm UTC](https://www.ruby-forum.com/t/find-enclosing-mountpoint-docs-dont-match-reality/211641/2 "2011-09-10T12:32:22Z")

</div>

On Fri, Sep 9, 2011 at 15:31, Michal S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> opposite is observed:  
> I don’t understand what you mean.

I would suggest that you take this to the gtk-devel mailing list, as I  
suspect that this is behavior dictated by GLib, not Ruby-GNOME2.
