Module: Pulse::Downloader::FileChecker

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

Instance Method Summary collapse

Instance Method Details

#file_path_in_file_list?(file_path) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
# File 'lib/pulse/downloader/file_checker.rb', line 4

def file_path_in_file_list?(file_path)
  return false unless drop_exitsing_files_in_path && save_data

  list_files_in(save_path).include?(compute_save_path(file_path))
end