@@ -121,7 +121,7 @@ module.exports = function files (self) {
121
121
return pull (
122
122
pull . map ( normalizeContent ) ,
123
123
pull . flatten ( ) ,
124
- importer ( self . _ipldResolver , opts ) ,
124
+ importer ( self . _ipld , opts ) ,
125
125
pull . asyncMap ( prepareFile . bind ( null , self , opts ) )
126
126
)
127
127
}
@@ -139,7 +139,7 @@ module.exports = function files (self) {
139
139
const d = deferred . source ( )
140
140
141
141
pull (
142
- exporter ( ipfsPath , self . _ipldResolver ) ,
142
+ exporter ( ipfsPath , self . _ipld ) ,
143
143
pull . collect ( ( err , files ) => {
144
144
if ( err ) { return d . abort ( err ) }
145
145
if ( files && files . length > 1 ) {
@@ -168,7 +168,7 @@ module.exports = function files (self) {
168
168
const maxDepth = recursive ? global . Infinity : pathDepth
169
169
170
170
return pull (
171
- exporter ( ipfsPath , self . _ipldResolver , { maxDepth : maxDepth } ) ,
171
+ exporter ( ipfsPath , self . _ipld , { maxDepth : maxDepth } ) ,
172
172
pull . filter ( node =>
173
173
recursive ? node . depth >= pathDepth : node . depth === pathDepth
174
174
) ,
@@ -245,7 +245,7 @@ module.exports = function files (self) {
245
245
246
246
get : promisify ( ( ipfsPath , callback ) => {
247
247
pull (
248
- exporter ( ipfsPath , self . _ipldResolver ) ,
248
+ exporter ( ipfsPath , self . _ipld ) ,
249
249
pull . asyncMap ( ( file , cb ) => {
250
250
if ( file . content ) {
251
251
pull (
@@ -267,7 +267,7 @@ module.exports = function files (self) {
267
267
getReadableStream : ( ipfsPath ) => {
268
268
return toStream . source (
269
269
pull (
270
- exporter ( ipfsPath , self . _ipldResolver ) ,
270
+ exporter ( ipfsPath , self . _ipld ) ,
271
271
pull . map ( ( file ) => {
272
272
if ( file . content ) {
273
273
file . content = toStream . source ( file . content )
@@ -281,7 +281,7 @@ module.exports = function files (self) {
281
281
} ,
282
282
283
283
getPullStream : ( ipfsPath ) => {
284
- return exporter ( ipfsPath , self . _ipldResolver )
284
+ return exporter ( ipfsPath , self . _ipld )
285
285
} ,
286
286
287
287
lsImmutable : promisify ( ( ipfsPath , options , callback ) => {
0 commit comments