@@ -44,12 +44,12 @@ describe('files', () => runOnAndOff((thing) => {
44
44
'added QmeiTxVN4xAjxUzHzBqCpK3GaT3GeiLQeJRpYDXDfLeEmR recursive-get-dir/datastore/MANIFEST-000014' ,
45
45
'added QmQpc75sJGUv59dAwHF7vazBGV9o6C7z587Dp9nv7HYAps recursive-get-dir/datastore/LOG.old' ,
46
46
'added QmbFNLNr9at9eK5LrNyUdyE5cdLb5yaT9DkjXw7BK68kcM recursive-get-dir/datastore/LOG' ,
47
- 'added QmfJMCvenrj4SKKRc48DYPxwVdS44qCUCqqtbqhJuSTWXP recursive-get-dir/datastore/LOCK' ,
47
+ 'added QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH recursive-get-dir/datastore/LOCK' ,
48
48
'added QmVJi93Yj5RW3NuqqxonGz3jAXUYHrdQvWrURxg1TiLEuX recursive-get-dir/datastore/CURRENT' ,
49
49
'added QmcJ6TXPMPm6puSC9vpxuG57PyfGpr8bvTgkKU9SHHU5Uo recursive-get-dir/datastore/000010.ldb' ,
50
50
'added QmPFVLPmp9zv5Z5KUqLhe2EivAGccQW2r7M7jhVJGLZoZU recursive-get-dir/datastore/000005.ldb' ,
51
51
'added QmfExFwdFKspsY2q5WnhQjd1QDKnjpTQ4UkiHqqQxV7h67 recursive-get-dir/datastore/000002.ldb' ,
52
- 'added Qma13ZrhKG52MWnwtZ6fMD8jGj8d4Q9sJgn5xtKgeZw5uz recursive-get-dir/datastore' ,
52
+ 'added QmUqyZtPmsRy1U5Mo8kz2BAMmk1hfJ7yW1KAFTMB2odsFv recursive-get-dir/datastore' ,
53
53
'added QmPkWYfSLCEBLZu7BZt4kigGDMe3cpogMbeVf97gN2xJDN recursive-get-dir/config' ,
54
54
'added QmbJgQa4XNBFvGQcLbWBNtvWZetbCUKiyAQNfePoTzwf9L recursive-get-dir/blocks/CIQPD/CIQPDQJBGYDZNMOAGGYNRNMP2VDKWBWGAEDDEJDACM3SGG3VIANDDXI.data' ,
55
55
'added QmSCUPYy4CfFt9nA61J9v2DMfJygQAJjaUcRmygDbVME2D recursive-get-dir/blocks/CIQPD' ,
@@ -61,8 +61,8 @@ describe('files', () => runOnAndOff((thing) => {
61
61
'added Qmec4atiyfysPR8HU5gPfjKY1NpQDY2kmSeeadx8wLEBqY recursive-get-dir/blocks/CIQOM' ,
62
62
'added QmeBypQ2yE4t4Loybhby15DjkeLDXJKCcgMfxTXeFnHa8F recursive-get-dir/blocks/CIQOL/CIQOLBQZSZAODJGGH6RYYVBUXHTS3SM5EORZDU63LYPEFUAFE4SBM4I.data' ,
63
63
'added Qmd6s8LXAEjW7y9QbGSzeuewrRBYjJHmcazG3Hk7cJ74da recursive-get-dir/blocks/CIQOL' ,
64
- 'added QmfJMCvenrj4SKKRc48DYPxwVdS44qCUCqqtbqhJuSTWXP recursive-get-dir/blocks/CIQOH/CIQOHMGEIKMPYHAUTL57JSEZN64SIJ5OIHSGJG4TJSSJLGI3PBJLQVI.data' ,
65
- 'added QmdiJnDhn4Bb1odByw1BA5qpXssjxgttVz42tpEfo7HNUe recursive-get-dir/blocks/CIQOH' ,
64
+ 'added QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH recursive-get-dir/blocks/CIQOH/CIQOHMGEIKMPYHAUTL57JSEZN64SIJ5OIHSGJG4TJSSJLGI3PBJLQVI.data' ,
65
+ 'added QmTnaav9VTSVyLu8PvRzh4gJ8heF9rpdWzeDb7rMx5DkxV recursive-get-dir/blocks/CIQOH' ,
66
66
'added Qmc1nasezDdPyZiXB5VB6Aygzswcr6QkauzzXMeUGouHTN recursive-get-dir/blocks/CIQMB/CIQMB7DLJFKD267QJ2B5FJNHZPTSVA7IB6OHXSQ2XSVEEKMKK6RT75I.data' ,
67
67
'added QmeqJBkwmzsVR79HBKLW7AYhfAMxMaJs5dGHSgey5ezy7N recursive-get-dir/blocks/CIQMB' ,
68
68
'added QmaSjzSSRanYzRGPXQY6m5SWfSkkfcnzNkurJEQc4chPJx recursive-get-dir/blocks/CIQLB/CIQLBS5HG4PRCRQ7O4EBXFD5QN6MTI5YBYMCVQJDXPKCOVR6RMLHZFQ.data' ,
@@ -113,8 +113,8 @@ describe('files', () => runOnAndOff((thing) => {
113
113
'added QmSCq2peGvGDXZKuX565UczxRpgzsiPPF3PgcJq9zDbByL recursive-get-dir/blocks/CIQDD' ,
114
114
'added QmdgaiKe1HFfhrZvLwTFCrXmgTojhSWuBvyFXUVc8KzJVc recursive-get-dir/blocks/CIQBE/CIQBED3K6YA5I3QQWLJOCHWXDRK5EXZQILBCKAPEDUJENZ5B5HJ5R3A.data' ,
115
115
'added QmYwUkwNwJN2cevwXKL48DRpbbjbdLWyyLANG3BKTtsTZ8 recursive-get-dir/blocks/CIQBE' ,
116
- 'added QmQQHYDwAQms78fPcvx1uFFsfho23YJNoewfLbi9AtdyJ9 recursive-get-dir/blocks' ,
117
- 'added QmYmW4HiZhotsoSqnv2o1oUusvkRM8b9RweBoH7ao5nki2 recursive-get-dir'
116
+ 'added QmamKEPmEH9RUsqRQsfNf5evZQDQPYL9KXg1ADeT7mkHkT recursive-get-dir/blocks' ,
117
+ 'added Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z recursive-get-dir'
118
118
]
119
119
120
120
before ( ( ) => {
@@ -124,7 +124,7 @@ describe('files', () => runOnAndOff((thing) => {
124
124
it ( 'add with progress' , function ( ) {
125
125
this . timeout ( 30 * 1000 )
126
126
127
- return ipfs ( 'files add -p src/init-files/init-docs/readme' )
127
+ return ipfs ( 'add -p src/init-files/init-docs/readme' )
128
128
. then ( ( out ) => {
129
129
expect ( out )
130
130
. to . eql ( 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme\n' )
@@ -134,7 +134,7 @@ describe('files', () => runOnAndOff((thing) => {
134
134
it ( 'add' , function ( ) {
135
135
this . timeout ( 30 * 1000 )
136
136
137
- return ipfs ( 'files add src/init-files/init-docs/readme' )
137
+ return ipfs ( 'add src/init-files/init-docs/readme' )
138
138
. then ( ( out ) => {
139
139
expect ( out )
140
140
. to . eql ( 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme\n' )
@@ -154,7 +154,7 @@ describe('files', () => runOnAndOff((thing) => {
154
154
it ( 'add recursively test' , function ( ) {
155
155
this . timeout ( 60 * 1000 )
156
156
157
- return ipfs ( 'files add -r test/fixtures/test-data/recursive-get-dir' )
157
+ return ipfs ( 'add -r test/fixtures/test-data/recursive-get-dir' )
158
158
. then ( ( out ) => {
159
159
expect ( out ) . to . eql ( recursiveGetDirResults . join ( '\n' ) + '\n' )
160
160
} )
@@ -163,7 +163,7 @@ describe('files', () => runOnAndOff((thing) => {
163
163
it ( 'add directory with trailing slash test' , function ( ) {
164
164
this . timeout ( 30 * 1000 )
165
165
166
- return ipfs ( 'files add -r test/fixtures/test-data/recursive-get-dir/' )
166
+ return ipfs ( 'add -r test/fixtures/test-data/recursive-get-dir/' )
167
167
. then ( ( out ) => {
168
168
expect ( out ) . to . eql ( recursiveGetDirResults . join ( '\n' ) + '\n' )
169
169
} )
@@ -177,7 +177,7 @@ describe('files', () => runOnAndOff((thing) => {
177
177
'added QmXJGoo27bg7ExNAtr9vRcivxDwcfHtkxatGno9HrUdR16 odd-name-[v0]'
178
178
]
179
179
180
- return ipfs ( 'files add -r test/fixtures/odd-name-[v0]' )
180
+ return ipfs ( 'add -r test/fixtures/odd-name-[v0]' )
181
181
. then ( ( out ) => {
182
182
expect ( out ) . to . eql ( expected . join ( '\n' ) + '\n' )
183
183
} )
@@ -258,7 +258,7 @@ describe('files', () => runOnAndOff((thing) => {
258
258
it ( 'add --quiet' , function ( ) {
259
259
this . timeout ( 30 * 1000 )
260
260
261
- return ipfs ( 'files add -q src/init-files/init-docs/readme' )
261
+ return ipfs ( 'add -q src/init-files/init-docs/readme' )
262
262
. then ( ( out ) => {
263
263
expect ( out )
264
264
. to . eql ( 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB\n' )
@@ -268,7 +268,7 @@ describe('files', () => runOnAndOff((thing) => {
268
268
it ( 'add --quieter' , function ( ) {
269
269
this . timeout ( 30 * 1000 )
270
270
271
- return ipfs ( 'files add -Q -w test/fixtures/test-data/hello test/test-data/node.json' )
271
+ return ipfs ( 'add -Q -w test/fixtures/test-data/hello test/test-data/node.json' )
272
272
. then ( ( out ) => {
273
273
expect ( out )
274
274
. to . eql ( 'QmYRMUVULBfj7WrdPESnwnyZmtayN6Sdrwh1nKcQ9QgQeZ\n' )
@@ -278,15 +278,15 @@ describe('files', () => runOnAndOff((thing) => {
278
278
it ( 'add --silent' , function ( ) {
279
279
this . timeout ( 30 * 1000 )
280
280
281
- return ipfs ( 'files add --silent src/init-files/init-docs/readme' )
281
+ return ipfs ( 'add --silent src/init-files/init-docs/readme' )
282
282
. then ( ( out ) => {
283
283
expect ( out )
284
284
. to . eql ( '' )
285
285
} )
286
286
} )
287
287
288
288
it ( 'add --only-hash outputs correct hash' , function ( ) {
289
- return ipfs ( 'files add --only-hash src/init-files/init-docs/readme' )
289
+ return ipfs ( 'add --only-hash src/init-files/init-docs/readme' )
290
290
. then ( out =>
291
291
expect ( out )
292
292
. to . eql ( 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme\n' )
@@ -330,7 +330,7 @@ describe('files', () => runOnAndOff((thing) => {
330
330
it ( 'cat' , function ( ) {
331
331
this . timeout ( 30 * 1000 )
332
332
333
- return ipfs ( 'files cat QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' )
333
+ return ipfs ( 'cat QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' )
334
334
. then ( ( out ) => {
335
335
expect ( out ) . to . eql ( readme )
336
336
} )
@@ -348,7 +348,7 @@ describe('files', () => runOnAndOff((thing) => {
348
348
it ( 'cat part of a file using `count`' , function ( ) {
349
349
this . timeout ( 30 * 1000 )
350
350
351
- return ipfs ( 'files cat QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB --offset 21 --count 5' )
351
+ return ipfs ( 'cat QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB --offset 21 --count 5' )
352
352
. then ( ( out ) => {
353
353
expect ( out ) . to . eql ( readme . substring ( 21 , 26 ) )
354
354
} )
@@ -357,7 +357,7 @@ describe('files', () => runOnAndOff((thing) => {
357
357
it ( 'cat part of a file using `length`' , function ( ) {
358
358
this . timeout ( 30 * 1000 )
359
359
360
- return ipfs ( 'files cat QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB --offset 21 --length 5' )
360
+ return ipfs ( 'cat QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB --offset 21 --length 5' )
361
361
. then ( ( out ) => {
362
362
expect ( out ) . to . eql ( readme . substring ( 21 , 26 ) )
363
363
} )
@@ -374,7 +374,7 @@ describe('files', () => runOnAndOff((thing) => {
374
374
it ( 'get' , function ( ) {
375
375
this . timeout ( 20 * 1000 )
376
376
377
- return ipfs ( 'files get QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' )
377
+ return ipfs ( 'get QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' )
378
378
. then ( ( out ) => {
379
379
expect ( out )
380
380
. to . eql ( 'Saving file(s) QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB\n' )
@@ -406,16 +406,16 @@ describe('files', () => runOnAndOff((thing) => {
406
406
it ( 'get recursively' , function ( ) {
407
407
this . timeout ( 20 * 1000 )
408
408
409
- const outDir = path . join ( process . cwd ( ) , 'QmYmW4HiZhotsoSqnv2o1oUusvkRM8b9RweBoH7ao5nki2 ' )
409
+ const outDir = path . join ( process . cwd ( ) , 'Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z ' )
410
410
rimraf ( outDir )
411
411
412
- return ipfs ( 'files get QmYmW4HiZhotsoSqnv2o1oUusvkRM8b9RweBoH7ao5nki2 ' )
412
+ return ipfs ( 'get Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z ' )
413
413
. then ( ( out ) => {
414
414
expect ( out ) . to . eql (
415
- 'Saving file(s) QmYmW4HiZhotsoSqnv2o1oUusvkRM8b9RweBoH7ao5nki2 \n'
415
+ 'Saving file(s) Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z \n'
416
416
)
417
417
418
- const outDir = path . join ( process . cwd ( ) , 'QmYmW4HiZhotsoSqnv2o1oUusvkRM8b9RweBoH7ao5nki2 ' )
418
+ const outDir = path . join ( process . cwd ( ) , 'Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z ' )
419
419
const expectedDir = path . join ( process . cwd ( ) , 'test' , 'fixtures' , 'test-data' , 'recursive-get-dir' )
420
420
421
421
const compareResult = compareDir ( outDir , expectedDir , {
0 commit comments