This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Commit 1c853a1
Alan Shaw
test: add test for add files to dir non sequentially
Output is:
```js
[
{
path: 'test-dir/b/jungle.txt',
hash: 'QmT6orWioMiSqXXPGsUi71CKRRUmJ8YkuueV2DPV34E9y9',
size: 2305
},
{
path: 'test-dir/b',
hash: 'QmfQm3xnDNKHRxPxb3z1UA81Cst8wWdA93dZC6oPRbTWHm',
size: 2362
},
{
path: 'test-dir/a/pp.txt',
hash: 'QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn',
size: 4551
},
{
path: 'test-dir/a/holmes.txt',
hash: 'QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr',
size: 582072
},
{
path: 'test-dir/a/alice.txt',
hash: 'QmZyUEQVuRK3XV7L9Dk26pg6RVSgaYkiSTEdnT2kZZdwoi',
size: 11696
},
{
path: 'test-dir/a',
hash: 'QmXh4P8PwnYDrN62u1GRunyhoEnW68vTR7TXkBxodkxsmw',
size: 598478
},
{
path: 'test-dir',
hash: 'QmVBueuZRsuNgvExGFyTUGcLs2pdUMaKWrXu5fY37BaT2T',
size: 600933
}
]
```
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>1 parent 4fdb6f6 commit 1c853a1
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
328 | 355 | | |
329 | 356 | | |
330 | 357 | | |
| |||
0 commit comments