module PathMapper::Node::Dir::Representation
Public Instance Methods
empty?()
click to toggle source
# File lib/path_mapper/node/dir/representation.rb, line 5 def empty? self.with_dry_run do |dry_run| if dry_run empty = self.storage.select {|k,v| k.to_s.start_with? @path.to_s }.count == 1 @path.directory? ? (@path.children - self.deleted_files).empty? : empty else @path.children.empty? end end end