Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私がやっていることは、空の docx を rubyzip で開こうとしているのですが、エラーが発生し続けます:
Zip::Error: File /b;a/bla/bla/existing_file.docx not found
rubyzip に空の zip ファイルを開かないようにするルールはありますか?
rubyzip既存のファイルの圧縮のみをサポートします。できることは、を使用して空のファイルを作成しtouch、それを圧縮することです。
rubyzip
touch
require "fileutils" FileUtils.touch '/b;a/bla/bla/existing_file.docx'