在本机android项目中,如何将文件夹从资产复制到DocumentDirectoryPath?

我正在使用一个本机反应项目,我想将android内部资产中某个文件夹的内容复制到RNFS.DocumentDirectoryPath。如何执行?

我使用了属性copyFileAssets()。

 copyfile() {
    RNFS.copyFileAssets('/ICF-Package',RNFS.DocumentDirectoryPath + '/ICFPackage').then((result) => console.log('DONE')).catch((error) => console.log(error,'ERROR'));
  };

  I'm getting the following error:

错误:资产'/ ICF-Package'无法打开

hanjinshuen 回答:在本机android项目中,如何将文件夹从资产复制到DocumentDirectoryPath?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3161476.html

大家都在问