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
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
On Wed, Nov 19, 2008 at 3:32 AM, Ittay D. [email protected]
wrote:
–
Ittay D. [email protected]
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)
On Nov 19, 3:32 am, Ittay D. [email protected] wrote:
How can I find in ruby the type offilesystemfrom 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.
gem install sys-filesystem
Enjoy!
Dan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs