|
|
@ -415,9 +415,7 @@ class DGitProvider extends Plugin { |
|
|
|
const ipfs = IpfsHttpClient(config) |
|
|
|
const ipfs = IpfsHttpClient(config) |
|
|
|
let result = false |
|
|
|
let result = false |
|
|
|
try { |
|
|
|
try { |
|
|
|
console.log('try ', config) |
|
|
|
|
|
|
|
const data = ipfs.get(cid, { timeout: 60000 }) |
|
|
|
const data = ipfs.get(cid, { timeout: 60000 }) |
|
|
|
console.log(config, cid, workspace, data) |
|
|
|
|
|
|
|
for await (const file of data) { |
|
|
|
for await (const file of data) { |
|
|
|
if (file.path) result = true |
|
|
|
if (file.path) result = true |
|
|
|
file.path = file.path.replace(cid, '') |
|
|
|
file.path = file.path.replace(cid, '') |
|
|
|