You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case "file:": { console.log(`${colors.green("Copying")} ${url}`);
/*
// Deno.chmod currently throws on Windows
await Deno.copyFile(fromFileUrl(url), cacheFilePath);
await Deno.chmod(cacheFilePath, 0o644);
*/
// portable workaround
// note: this is limited by memory size
// todo: copy large file in chunks
const data = await Deno.readFile(fromFileUrl(url));
await Deno.writeFile(cacheFilePath, data);
break;
}
plug/download.ts
Lines 255 to 259 in 7e85fa9
when the source file is read-only (chmod 0555)
then the cached file is also read-only
future calls to download fail
because the target file in cache is read-only
first call:
second call:
called from https://deno.land/x/webview
discuss: should preserve the execution bit of the original file? or just
chmod 0644
all files?The text was updated successfully, but these errors were encountered: