@@ -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 ( ( ) => {
@@ -144,7 +144,7 @@ describe('files', () => runOnAndOff((thing) => {
144
144
it ( 'add alias' , function ( ) {
145
145
this . timeout ( 30 * 1000 )
146
146
147
- return ipfs ( 'add src/init-files/init-docs/readme' )
147
+ return ipfs ( 'files add src/init-files/init-docs/readme' )
148
148
. then ( ( out ) => {
149
149
expect ( out )
150
150
. to . eql ( 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme\n' )
@@ -186,7 +186,7 @@ describe('files', () => runOnAndOff((thing) => {
186
186
it ( 'add and wrap with a directory' , function ( ) {
187
187
this . timeout ( 30 * 1000 )
188
188
189
- return ipfs ( 'add -w src/init-files/init-docs/readme' ) . then ( ( out ) => {
189
+ return ipfs ( 'files add -w src/init-files/init-docs/readme' ) . then ( ( out ) => {
190
190
expect ( out ) . to . be . eql ( [
191
191
'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme' ,
192
192
'added QmapdaVPjHXdcswef82FnGQUauMNpk9xYFkLDZKgAxhMwq'
@@ -197,7 +197,7 @@ describe('files', () => runOnAndOff((thing) => {
197
197
it ( 'add with cid-version=0' , function ( ) {
198
198
this . timeout ( 30 * 1000 )
199
199
200
- return ipfs ( 'add src/init-files/init-docs/readme --cid-version=0' ) . then ( ( out ) => {
200
+ return ipfs ( 'files add src/init-files/init-docs/readme --cid-version=0' ) . then ( ( out ) => {
201
201
expect ( out )
202
202
. to . eql ( 'added QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme\n' )
203
203
} )
@@ -216,7 +216,7 @@ describe('files', () => runOnAndOff((thing) => {
216
216
this . timeout ( 30 * 1000 )
217
217
218
218
return new Promise ( ( resolve , reject ) => {
219
- ipfs ( 'add src/init-files/init-docs/readme --cid-version=1' )
219
+ ipfs ( 'files add src/init-files/init-docs/readme --cid-version=1' )
220
220
. then ( ( ) => reject ( new Error ( 'Raw leaves not expected to be implemented' ) ) )
221
221
. catch ( ( err ) => {
222
222
expect ( err ) . to . exist ( )
@@ -227,7 +227,7 @@ describe('files', () => runOnAndOff((thing) => {
227
227
228
228
// TODO: this test is failing, @alanshaw?
229
229
it . skip ( 'add with cid-version=1 and raw-leaves=false' , ( ) => {
230
- return ipfs ( 'add src/init-files/init-docs/readme --cid-version=1 --raw-leaves=false' ) . then ( ( out ) => {
230
+ return ipfs ( 'files add src/init-files/init-docs/readme --cid-version=1 --raw-leaves=false' ) . then ( ( out ) => {
231
231
expect ( out )
232
232
. to . eql ( 'added zdj7WWeQ43G6JJvLWQWZpyHuAMq6uYWRjkBXFad11vE2LHhQ7 readme\n' )
233
233
} )
@@ -246,7 +246,7 @@ describe('files', () => runOnAndOff((thing) => {
246
246
this . timeout ( 30 * 1000 )
247
247
248
248
return new Promise ( ( resolve , reject ) => {
249
- ipfs ( 'add src/init-files/init-docs/readme --cid-version=1 --raw-leaves=true' )
249
+ ipfs ( 'files add src/init-files/init-docs/readme --cid-version=1 --raw-leaves=true' )
250
250
. then ( ( ) => reject ( new Error ( 'Raw leaves not expected to be implemented' ) ) )
251
251
. catch ( ( err ) => {
252
252
expect ( err ) . to . exist ( )
@@ -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
} )
@@ -390,7 +390,7 @@ describe('files', () => runOnAndOff((thing) => {
390
390
it ( 'get alias' , function ( ) {
391
391
this . timeout ( 20 * 1000 )
392
392
393
- return ipfs ( 'get QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' )
393
+ return ipfs ( 'files get QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' )
394
394
. then ( ( out ) => {
395
395
expect ( out )
396
396
. 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 ( 'files 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