Hi @shashi and @sdanisch, I’m winging the registration process on FileIO
gzip_magic = (0x1f8b)
function detectgzip(io)
position(io) == 0 || return false
seekend(io)
len = position(io)
seekstart(io)
magic = Vector{UInt8}(length(gzip_magic))
pos = position(io)
read!(io, magic)
end
add_format(format"GZIP", [0x1f8b], ".gz")
I need to check if GZIP requires certain packages for I/O support.
I’ll build on this post before I actually make the PR, if you don’t mind.