Class FuseFS::PathMapperFS::MNode
In: lib/fusefs/pathmapper.rb
Parent: Object

Represents a mapped file or directory

Methods

[]   []=   deleted   directory?   file?   init_dir   init_file   new   root?   updated   xattr  

Classes and Modules

Class FuseFS::PathMapperFS::MNode::XAttr

Attributes

files  [R]  @return [Hash<String,MNode>] list of files in a directory, nil for file nodes
options  [R]  @return [Hash] metadata for this node
parent  [R]  Useful when mapping a file to store attributes against the parent directory @return [MNode] parent directory
real_path  [R]  @return [String] path to backing file, or nil for directory nodes

Public Class methods

@!visibility private

Public Instance methods

Compatibility and convenience method @param [:pm_real_path,String,Symbol] key @return [String] {real_path} if key == :pm_real_path @return [MNode] the node representing the file named key @return [Object] shortcut for {options}[key]

Convenience method to set metadata into {options}

@return [Boolean] true if node represents a directory, otherwise false

@return [Boolean] true if node represents a file, otherwise false

@!visibility private

@return [Boolean] true if node is the root directory

[Validate]