Module: Pulse::Downloader::WebPageParser

Included in:
Client
Defined in:
lib/pulse/downloader/web_page_parser.rb

Instance Method Summary collapse

Instance Method Details

#fetch_file_paths(custom_path_root = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/pulse/downloader/web_page_parser.rb', line 4

def fetch_file_paths(custom_path_root=nil)
  if traverse_folders
    fetch_folders(url, custom_path_root).each do |folder_url|
      fetch_and_parse_response(folder_url, custom_path_root)
    end
  else
    fetch_and_parse_response(url, custom_path_root)
  end
end