tar 格式替代方案
我需要使用 ruby 归档多个文件,但我需要以这样的方式归档它们,以便可以在不使用我的脚本的情况下提取它们(所以我需要流行的格式)。
tar 的问题是最大文件长度以及写入 tar 时随机文件访问的问题。
良好的纯 ruby 库或 ruby 绑定是非常需要的。
内置压缩将是一个很好的补充(所以我不需要在归档周围使用 zlib ruby 绑定)。
I need to archive multiple files using ruby, but I need to archive them in such way that they could be extracted without using my script (so I need popular format).
Problems with tar are max file length and problems with random file access while writing tar.
Good pure ruby library or ruby binding is highly desirable.
Built-in compression would be a good addition (so i don't need to use zlib ruby binding around archiving).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Ruby Zip 非常稳定,我们用它来允许用户下载图像包。
Ruby Zip is very stable, we use it to allow users to download bundles of images.
那么为什么不在
ruby 脚本中使用类似的东西呢?如果他们有提取文件的可执行文件,那么他们肯定有命令行
tar
可执行文件。So why not just use something like this
from inside of your ruby script? If they have the executable to extract the files, surely they have a command line
tar
executable.