mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont compress zip backups
This commit is contained in:
parent
9f96150b2d
commit
95e61a3f45
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ get '/site_files/:username.zip' do |username|
|
|||
next if File.directory?(file)
|
||||
|
||||
zip_path = file.sub("#{directory_path}/", '')
|
||||
zip.write_deflated_file(zip_path) do |file_writer|
|
||||
zip.write_stored_file(zip_path) do |file_writer|
|
||||
File.open(file, 'rb') do |file|
|
||||
IO.copy_stream(file, file_writer)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue