Class: DevSuite::DirectoryTree::Builder::Base

Inherits:
Utils::Construct::Component::Base show all
Defined in:
lib/dev_suite/directory_tree/builder/base.rb

Instance Method Summary collapse

Methods inherited from Utils::Construct::Component::Base

component_key

Instance Method Details

#build(path) ⇒ Object

Recursive method to build the tree



10
11
12
13
14
15
16
# File 'lib/dev_suite/directory_tree/builder/base.rb', line 10

def build(path)
  return build_permission_denied_node(path) unless path.readable?

  build_node(path)
rescue Errno::EACCES
  build_permission_denied_node(path)
end