Permalink
Browse files

allow tar,gz, etc to be dataset uplaoded

  • Loading branch information...
1 parent 3bf93a7 commit a9c1f4dda5d5f5455879b5facf7b76ff3bd13eb3 @rdulepet committed Jul 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 job.rb
View
@@ -228,7 +228,7 @@ def store_data
upload_files = Dir[File.join("#{Global.results_dir}/#{@curr_uuid}", "*")].select{|file|
Global.logger.info( "file in dir=#{file}")
File.ftype(file) == "file" &&
- !/\.(jpg|png|gif|html|htm|js|css|pdf|log|r|rb|java|php|py|pyc|jar|gz|tar|zip|class|exe|so|o|dll|lib)$/.match(file.downcase)}.each{|name|
+ !/\.(jpg|png|gif|html|htm|js|css|pdf|log|r|rb|java|php|py|pyc|jar|class|exe|so|o|dll|lib)$/.match(file.downcase)}.each{|name|
name = name.split("/").last
if ! @in_data_files.has_key?(name)
# seems like underscore is issue so replace with hyphen

0 comments on commit a9c1f4d

Please sign in to comment.