var zipfile = "hybrid/pkg/pandian.zip";           
zipfile =plus.io.convertLocalFileSystemURL(zipfile);  
console.log("zipfile绝对路径: " + zipfile);  
var targetPath = 'hybrid/html/';  
targetPath =plus.io.convertLocalFileSystemURL(targetPath);  
console.log("targetPath绝对路径: " + targetPath);  
plus.zip.decompress(zipfile, targetPath,  
    function() {                      
        uni.showToast({ title: '解压缩成功!', icon: 'none' });  
        uni.navigateTo({  
                url: '../web-view.d?cid=webid&name=webname'  
        });  
    },function(error) {  
        console.log("解压缩失败: " + JSON.stringify(error));  
        uni.showToast({ title: '解压缩失败!', icon: 'none' });  
});
老是报这个错:{"code":9,"message":"operate_dir_error"}
是权限问题吗?还是路径问题?还是其他什么原因?
            
            
            


            
二福
我是写的_www/hybrid 这样不可以吗?
2019-08-02 14:09
DCloud_App_Array
回复 二福: __www目录是只读目录,不能写入文件。
2019-08-07 17:00
二福
回复 DCloud_App_Array: ok 谢谢
2019-08-18 13:20