tom-james-watson / dat-cp

dcp | Dat Copy - remote file copy, powered by the Dat protocol
MIT License
315 stars 21 forks source link

dat-node fails with 'Could not locate data' when sending a high number of files #20

Open tom-james-watson opened 5 years ago

tom-james-watson commented 5 years ago

Sending a high number of files (~ >500) will end up throwing this error:

dcp ERR Error: Could not locate data
dcp ERR Failed to write file to archive.

This comes from https://github.com/tom-james-watson/dat-cp/blob/master/src/lib/storage.js#L89, which comes from https://github.com/datproject/dat-storage/blob/0e823fda112d5cc277e0e514a4aa0ba0c9e037bf/index.js#L63

See related issues: