lib/fusefs/pathmapper.rb
# Represents a mapped file or directory
Represents a mapped file or directory
Represents a mapped file or directory
def make_node(path)
            components = path.to_s.scan(/[^\/]+/)
            components.inject(@root) { |parent_dir, file|
                parent_dir.files[file] ||= MNode.new(parent_dir,@stats)
            }
        end
def make_node ( path ) components = path . to_s . scan ( / [^ \/ ]+ / ) components . inject ( @root ) { | parent_dir , file | parent_dir . files [ file ] ||= MNode . new ( parent_dir , @stats ) } end
Represents a mapped file or directory
Represents a mapped file or directory
#split path into components
path