/usr/share/doc/libfusefs-ruby1.8/examples/hello.rb is in libfusefs-ruby1.8 0.6.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | require 'fusefs'
class HelloDir
def contents(path)
['hello.txt']
end
def file?(path)
path == '/hello.txt'
end
def read_file(path)
"Hello, World!\n"
end
end
hellodir = HelloDir.new
FuseFS.set_root( hellodir )
# Mount under a directory given on the command line.
FuseFS.mount_under ARGV.shift
FuseFS.run
|