lib/gooddata/models/process.rb in gooddata-0.6.15 vs lib/gooddata/models/process.rb in gooddata-0.6.16
- old
+ new
@@ -165,12 +165,13 @@
elsif !path.directory?
client.upload_to_user_webdav(path, opts)
path
else
with_zip(opts) do |zipfile|
- Dir[File.join(path, '**', '**')].reject { |f| files_to_exclude.include?(Pathname(path) + f) }.each do |file|
+ files_to_upload = Dir[File.join(path, '**', '**')].reject { |f| files_to_exclude.include?(Pathname(path) + f) }
+ puts "Uploading #{files_to_upload.count} files."
+ files_to_upload.each do |file|
file_pathname = Pathname.new(file)
- puts "Including item #{file_pathname}"
file_relative_pathname = file_pathname.relative_path_from(Pathname.new(path))
zipfile.add(file_relative_pathname, file)
end
end
end