RbFuse is a library to use FUSE in ruby.
RbFuse is based on the existing library FuseFS and FuseFS-OSX, but it has the different API.
-
Ruby 1.8.7, 1.9 or later
-
FUSE 2.6 or later
reuqire "rubygems" require "rbfuse" RbFuse.set_root(filesystem_object) RbFuse.mount_under(path_to_mount_directory) RbFuse.run
-
Define a subclass of RbFuse::FuseDir
-
Implement following methods:
-
readdir(path) #=> [filename, …]
-
getattr(path) #=> RbFuse::Stat
-
open(path,mode,handle)
-
read(path,offset,size,handle) #=>String
-
write(path,offset,str, handle)
-
close(path,handle)
-
unlink(path)
-
mkdir(path,perm)
-
rmdir(path)
-
Copyright © 2009 Shumpei Akai. See LICENSE for details.