This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 2 files changed +8
-4
lines changed 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 100
100
"ipfs-bitswap" : " ^0.26.0" ,
101
101
"ipfs-block" : " ~0.8.1" ,
102
102
"ipfs-block-service" : " ~0.16.0" ,
103
- "ipfs-http-client" : " ^39 .0.2 " ,
103
+ "ipfs-http-client" : " ^40 .0.0 " ,
104
104
"ipfs-http-response" : " ~0.4.0" ,
105
105
"ipfs-mfs" : " ipfs/js-ipfs-mfs#add-metadata-support" ,
106
106
"ipfs-multipart" : " ^0.2.0" ,
Original file line number Diff line number Diff line change @@ -194,7 +194,9 @@ exports.add = {
194
194
195
195
yield {
196
196
path : entry . name ,
197
- content : entry . content
197
+ content : entry . content ,
198
+ mode : entry . mode ,
199
+ mtime : entry . mtime
198
200
}
199
201
}
200
202
@@ -226,7 +228,9 @@ exports.add = {
226
228
output . write ( JSON . stringify ( {
227
229
Name : file . path ,
228
230
Hash : cidToString ( file . hash , { base : request . query [ 'cid-base' ] } ) ,
229
- Size : file . size
231
+ Size : file . size ,
232
+ Mode : file . mode ,
233
+ Mtime : file . mtime
230
234
} ) + '\n' )
231
235
}
232
236
}
@@ -292,7 +296,7 @@ exports.ls = {
292
296
Size : file . size ,
293
297
Type : toTypeCode ( file . type ) ,
294
298
Depth : file . depth ,
295
- Mode : file . mode . toString ( 8 ) . padStart ( 4 , '0' ) ,
299
+ Mode : file . mode ,
296
300
Mtime : file . mtime
297
301
} ) )
298
302
} ]
You can’t perform that action at this time.
0 commit comments