将文件追加到存档中,而无需读取/重写整个存档 [英] append files to an archive without reading/rewriting the whole archive

查看:34
本文介绍了将文件追加到存档中,而无需读取/重写整个存档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多文件要存储在一个存档文件中.我的第一种方法是将文件存储在一个 gzip 压缩包中.问题是,如果添加了单个文件,我必须重写整个存档.我可以摆脱 gzip 压缩,但添加文件仍然很昂贵.

I've got many files that I want to store in a single archive file. My first approach was to store the files in a gzipped tarball. The problem is, that I've to rewrite the whole archive if a single file is added. I could get rid of the gzip compression, but adding a file would still be expensive.

您建议使用哪些其他存档格式来允许快速追加操作?

What other archive format would you suggest that allows fast append operations?

推荐答案

ZIP 文件格式 旨在允许追加而无需完全重写,并且无处不在,即使在 Unix 上也是如此.

The ZIP file format was designed to allow appends without a total re-write and is ubiquitous, even on Unix.

这篇关于将文件追加到存档中,而无需读取/重写整个存档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆