【发布时间】:2018-09-10 16:06:02
【问题描述】:
我正在尝试使用copyFile(path, fileName, newPath, newFileName) 函数将文件从一个目录复制到另一个目录。它给出了类似{"code":13, "message":"input is not a directory"} 的错误。该文档只有 12 个错误代码,没有第 13 个。我想知道我做错了什么。
这是我的实际代码示例。
this.path = "file:///storage/emulated/0/TheFolder/thefile.ext";
this.newPath = "file:///storage/emulated/0/NewFolder";
this.fileCtrl.copyFile(this.path, fileName, this.newPath, newFileName)
【问题讨论】:
标签: ionic-framework ionic3 cordova-plugins