From: Glen Holcomb Date: 2008-11-19T23:54:14+09:00 Subject: Re: find type of filesystem (*nix/windows) ------=_Part_90274_28947855.1227106680185 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Nov 19, 2008 at 3:32 AM, Ittay Dror wrote: > How can I find in ruby the type of filesystem from a given file? (pseudo > code: FileSystem.type('/path/to/file')). I'm especially interested to know > if the fs is networked (nfs, cifs) or on a local disk. > > > Thank you, > > Ittay > > > -- > -- > Ittay Dror > > > > I would just ask the system: currently_mounted = `mount` -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_90274_28947855.1227106680185--