Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,请帮帮我添加方法未将文件添加到目录这是当前状态
c.files.mkdir("metadata") c.add([{path:"/metadata/0.json", content:""}]).then((r)=>console.log(r)) This is returned json object { path: 'metadata', cid: CID(QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn), size: 4 }
修复了代码
client.files.write('/metadata/name',content,{create:true})