Comments (12)
The api seems to indicate that this was using tar-fs and not tar-stream right?
from tar-stream.
sorry, yea, wrong repo
its worth noting that this equivalent code doesnt run out of memory and completes, but takes longer than I think tar-stream
would take if it wasnt leaking
var tar = require('tar')
var fstream = require('fstream')
var reader = fstream.Reader({type: "Directory", path: '/Users/max/Downloads/audiobooks/'})
var pack = tar.Pack()
reader.pipe(pack).pipe(tar.Extract({path: '/Users/max/Downloads/audiobooks2'}))
from tar-stream.
Which versions of tar-stream and tar-fs are you using? Also which version of node?
from tar-stream.
[email protected]
, [email protected]
, [email protected]
from tar-stream.
Using the latests versions I just copied a 3.7 gb directory using tar-fs in 7.5 seconds on my Macbook with no apparent leak. Using node-tar and the snippet you linked it still hasn't finished (been running for +5min now).
I'll try to see if I can reproduce the issue...
from tar-stream.
Do you have any symlinks in the folder you are trying to copy?
from tar-stream.
Hmmm, no symlinks. I first tried copying a 10gb folder full of mp3s, then a
sub folder of about 1gb of mp3s. Maybe it is related to the quantity of
files?
On Sunday, December 22, 2013, Mathias Buus wrote:
Do you have any symlinks in the folder you are trying to copy?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-31097152
.
from tar-stream.
Did the folder contain a lot of sub folders?
from tar-stream.
one of the folders that crashes every time: 338 documents, 27 folders, 4,324,597,805 bytes (4.33 GB on disk)
from tar-stream.
I think I've found (and solved) the issue. It was due to a bug being triggered by a long filename (>100 characters) that caused it to explode. It should be fixed now. Could you try upgrading tar-fs to 0.1.2 and try again?
from tar-stream.
nice, copies 485 documents, 25 folders, 9,279,350,569 bytes (9.28 GB on disk)
in 38423ms
and 338 documents, 27 folders, 4,324,597,805 bytes (4.33 GB on disk)
in 17659ms
from tar-stream.
Nice! How long does it take to do it with node-tar?
from tar-stream.
Related Issues (20)
- all entry name are paxheader HOT 2
- "Invalid tar header: unknown format." from valid tar file, IANA tz database HOT 5
- Tar file is corrupted when using single File larger than 8 GB - tar-fs HOT 1
- Packing files at the root HOT 1
- File corrupted when combining extract with gzip HOT 2
- unable to use stream.pipeline() HOT 1
- doesn't work with HOT 2
- skipping on entry, header errors HOT 1
- zero-sized files in tarballs do not call `end` handler HOT 2
- error handling issue HOT 3
- Add browser support HOT 12
- Error: Writable stream closed prematurely HOT 1
- Missing fast-fifo dependency HOT 2
- Using tar stream in the browser HOT 8
- Error: Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped? HOT 4
- create entry with base-256 size HOT 3
- Invalid tar header: unknown format. (for ExtendedName)
- Is it possible to return raw file offsets from within the tar? HOT 6
- Uncatchable error in pack.entry HOT 3
- Benchmarks not maintained in tar-fs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tar-stream.