I'm trying to use OS.File to copy a chrome path to desktop but it keeps throwing errors. Is this possible?
var promise = OS.File.copy('chrome://branding/content/icon16.png', OS.Path.join(OS.Constants.Path.desktopDir, 'copied.png'));
promise.then(
function(aVal) {
console.log('suc')
},
function(aReason) {
console.error('FAIL, aReason:', aReason)
console.error('FAIL, aReason:', aReason.toString())
}
);