Sha256: 6f6b8e9a85c086e90f5754f4a2385cc06b25a9ab5e98ff51de798462e5fc8bc6

Contents?: true

Size: 345 Bytes

Versions: 9

Compression:

Stored size: 345 Bytes

Contents

module Rmega
  module Nodes
    class Folder < Node
      include Expandable
      include Traversable
      include Deletable

      def download(path)
        path = ::File.join(path, self.name)
        FileUtils.mkdir_p(path)

        children.each do |node|
          node.download(path)
        end

        nil
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rmega-0.3.2 lib/rmega/nodes/folder.rb
rmega-0.3.1 lib/rmega/nodes/folder.rb
rmega-0.2.7 lib/rmega/nodes/folder.rb
rmega-0.2.6 lib/rmega/nodes/folder.rb
rmega-0.2.5 lib/rmega/nodes/folder.rb
rmega-0.2.4 lib/rmega/nodes/folder.rb
rmega-0.2.2 lib/rmega/nodes/folder.rb
rmega-0.2.1 lib/rmega/nodes/folder.rb
rmega-0.2.0 lib/rmega/nodes/folder.rb