You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed willow_sword adds a trailing LF character to content files when it creates a zip file. The following is an example to create a zip file for public directory in a Rails project.
$ rails c
> file = WillowSword::ZipPackage.new('public', 'data/test.zip')
> file.create_zip
$ unzip test.zip -d tmp
$ diff -u tmp/apple-touch-icon.png hyrax/public/apple-touch-icon.png
Binary files tmp/apple-touch-icon.png and hyrax/public/apple-touch-icon.png differ
$ cmp tmp/apple-touch-icon.png hyrax/public/apple-touch-icon.png
cmp: EOF on hyrax/public/apple-touch-icon.png after byte 5401, in line 26
The text was updated successfully, but these errors were encountered:
I noticed willow_sword adds a trailing LF character to content files when it creates a zip file. The following is an example to create a zip file for
public
directory in a Rails project.The text was updated successfully, but these errors were encountered: