Export Zipballs Include BlahTeX PNGs
It's as simple as recursing through the files/ directory, when adding to the zipball.
This commit is contained in:
parent
aea2c5099f
commit
d3db9d1229
1 changed files with 2 additions and 3 deletions
|
@ -463,9 +463,8 @@ EOL
|
|||
end
|
||||
end
|
||||
files = @web.files_path
|
||||
Dir.foreach(files) do |f|
|
||||
next if ['.', '..'].include?(f)
|
||||
zip_out.add "files/#{f}", File.join(files, f)
|
||||
Dir["#{files}/**/*"].each do |f|
|
||||
zip_out.add "files#{f.sub(files.to_s,'')}", f
|
||||
end
|
||||
end
|
||||
FileUtils.rm_rf(Dir[@wiki.storage_path.join(file_prefix + '*.zip').to_s])
|
||||
|
|
Loading…
Add table
Reference in a new issue