mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 07:41:52 +02:00
fix zip
This commit is contained in:
parent
88b76aff90
commit
be3724dd57
2 changed files with 2 additions and 2 deletions
2
app.rb
2
app.rb
|
@ -315,7 +315,7 @@ get '/site_files/:username.zip' do |username|
|
|||
require_login
|
||||
file_path = "/tmp/neocities-site-#{username}.zip"
|
||||
|
||||
Zip::ZipFile.open(file_path, Zip::ZipFile::CREATE) do |zipfile|
|
||||
Zip::File.open(file_path, Zip::File::CREATE) do |zipfile|
|
||||
current_site.file_list.collect {|f| f.filename}.each do |filename|
|
||||
zipfile.add filename, site_file_path(filename)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue