lib/fusefs/pathmapper.rb
def recursive_cleanup(dir_node,&block)
            dir_node.files.delete_if do |path,child|
                del = if child.file?
                    yield child
                else
                    recursive_cleanup(child,&block)
                    child.files.size == 0
                end
                child.deleted if del
                del
            end
        end
# Represents a mapped file or directory
Represents a mapped file or directory
Represents a mapped file or directory
def recursive_cleanup(dir_node,&block)
            dir_node.files.delete_if do |path,child|
                del = if child.file?
                    yield child
                else
                    recursive_cleanup(child,&block)
                    child.files.size == 0
                end
                child.deleted if del
                del
            end
        end
def recursive_cleanup ( dir_node , & block ) dir_node . files . delete_if do | path , child | del = if child . file? yield child else recursive_cleanup ( child , & block ) child . files . size == 0 end child . deleted if del del end end
Represents a mapped file or directory
Represents a mapped file or directory
dir_node
block