bin/crowdin-cli in crowdin-cli-0.1.4 vs bin/crowdin-cli in crowdin-cli-0.1.5

- old
+ new

@@ -254,11 +254,11 @@ local_file.merge!({ sheme: file['scheme'] }) if file.has_key?('scheme') local_file.merge!({ first_line_contains_header: file['first_line_contains_header'] }) if file.has_key?('first_line_contains_header') local_files << local_file else - Dir.glob("#{@base_path}#{file['source']}").each do |source| + Dir.glob("#{@base_path}#{file['source']}").select{ |fn| File.file?(fn) }.each do |source| dest = source.sub("#{@base_path}", '') # relative path in Crowdin dest_files << dest export_pattern = construct_export_pattern(dest, file['source'], file['translation']) @@ -395,11 +395,11 @@ translation_languages.each do |lang| source = export_pattern_to_path(dest, file['translation'], lang, languages_mapping) translated_files[lang['crowdin_code']] << { source: "#{@base_path}#{source}", dest: dest } end else - Dir.glob("#{@base_path}#{file['source']}").each do |source| + Dir.glob("#{@base_path}#{file['source']}").select{ |fn| File.file?(fn) }.each do |source| dest = source.sub("#{@base_path}", '') # relative path in Crowdin dest_files << dest export_pattern = construct_export_pattern(dest, file['source'], file['translation']) @@ -494,10 +494,10 @@ local_file = export_pattern_to_path(dest, file['translation'], lang, languages_mapping) downloadable_files[zipped_file] = local_file end else - Dir.glob("#{@base_path}#{file['source']}").each do |source| + Dir.glob("#{@base_path}#{file['source']}").select{ |fn| File.file?(fn) }.each do |source| dest = source.sub("#{@base_path}", '') # relative path in Crowdin export_pattern = construct_export_pattern(dest, file['source'], file['translation']) translation_languages.each do |lang|