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

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

问题描述

我有很多文件要存储在单个存档文件中.我的第一种方法是将文件存储在压缩的tarball中.问题是,如果添加了单个文件,我必须重写整个存档. 我可以摆脱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天全站免登陆