无法创建保存下载文件的路径:您无权将文件“folderName”保存在“Documents”文件夹中

Could not create path to save downloaded file: You don’t have permission to save the file “folderName” in the folder “Documents”

我正在通过 "Cordova-file-transfer" 插件从 ionic 中的服务器下载文件。它工作正常但是当我在下载过程中杀死应用程序时,然后我重新打开我开始下载,有时它会出现 "Could not create path to save downloaded file: You don’t have permission to save the file “folderName” in the folder “Documents”." 错误。

随机问题

我找到了错误的原因。当我更新我的应用程序时,任何下载正在进行中,就会发生这种情况。

它的解决方案。当应用程序重新启动时再次创建一个文件(mp3 文件)。