Open richcorbs opened 1 month ago
Is it as simple as updating writer_gzip.ts:41
to use Deno.writeFile
?
I cloned the repo and updated writer_gzip.ts. This introduced new errors about something being a directory.
I (sloppily) coded around those errors and got it to run BUT my files were 0 byte files at the destination. :-(
Another data point: I created the gzip another way and was able to use compress's gunzipFile
to unzip it and uncompress
to untar it.
@richcorbs I haven't done js/ts related work for more than five years, and I don't have the ability to maintain it now.
Solution:
Landed on v0.4.7
I'm using Deno 2 and trying to use compress to tar and gzip a directory on one system and then ungzip and untar the directory on another. The directory contains text and binary files.
Previously I have tried 0.4.4, and 0.4.5 and I was getting
Deno.read is not a function
. Updating to 0.4.6 resolved this error. Yay! Now I'm getting theDeno.write
error.\The tar file is written as expected and where expected but this
Deno.write
error shows up during the gzip portion. A 0-byte ".gz" file is created.This library seems to do exactly what I need if I could get it to work.
I'll look around the code a bit to see if there is anything obvious but I'm not confident in my own skills.
Any thoughts you have are appreciated if you're reading this. :-)