Skip to content

Commit

Permalink
Merge pull request #25 from marlonandrade/master
Browse files Browse the repository at this point in the history
Ignoring directories on rake test to upload files
  • Loading branch information
ka8725 committed Nov 27, 2014
2 parents d56d1e3 + 9eb7fab commit e10d691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/redmine_s3/lib/tasks/files_to_s3.rake
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ namespace :redmine_s3 do
# enqueue all of the files to be "worked" on
fileQ = Queue.new
storage_path = Redmine::Configuration['attachments_storage_path'] || File.join(Rails.root, "files")
Dir.glob(File.join(storage_path,'*')).each do |file|
fileQ << file
Dir.glob(File.join(storage_path,'**/*')).each do |file|
fileQ << file if File.file? file
end

# init the connection, and grab the ObjectCollection object for the bucket
Expand Down

0 comments on commit e10d691

Please sign in to comment.