Method: Fastlane::Actions::AppaloosaAction.screenshots_list
- Defined in:
- fastlane/lib/fastlane/actions/appaloosa.rb
.screenshots_list(path, locale, device) ⇒ Object
95 96 97 98 99 100 101 102 |
# File 'fastlane/lib/fastlane/actions/appaloosa.rb', line 95 def self.screenshots_list(path, locale, device) return warning_detected("screenshots folder not found") unless Dir.exist?("#{path}/#{locale}") list = Dir.entries("#{path}/#{locale}") - ['.', '..'] list.map do |screen| next if screen.match(device).nil? "#{path}/#{locale}#{screen}" unless Dir.exist?("#{path}/#{locale}#{screen}") end.compact end |