如果文件夹创建失败,我试图向用户显示弹出错误消息,因为它已经存在,但access Denied exception
被抛出msg.showAsync()
sf.getFolderAsync(KorN_Name).then(function (kn) {
return kn.createFolderAsync(username, Windows.Storage.CreationCollisionOption.failIfExists)
}).done(function (user) {
//some code
},
function (error) {
var md = Windows.UI.Popups.MessageDialog;
var msg = new md("User already exists", "Ooops!");
msg.showAsync();
});
如何解决?