Skip to content

bgzip: keep original modification time when compressing a file. #1718

Description

@ghuls

It would be nice if bgzip had an option to keep the original modification date of the file like gzip does:

$ cp -a original.tsv aa.tsv

# Compressing with gzip keeps original file modification time.
$ gzip aa.tsv

$ ls -l aa.tsv.gz 
-rw-rw-r--+ 1 ghuls ghuls 97776 May 22  2018 aa.tsv.gz

$ rm aa.tsv.gz 

$ cp -a original.tsv aa.tsv

# Compressing with bgzip does not kees original file modification time.
$ bgzip aa.tsv

$ ls -l aa.tsv.gz 
-rw-rw-r--+ 1 ghuls ghuls 94512 Dec  8 14:56 aa.tsv.gz

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions