Cannot copy files from `AppData/Local/` despite --allow-all flag
Description
When attempting to copy a file from
AppData/Local/
using @std/fs in Deno, the operation fails with a PermissionDenied (os error 5). This occurs even when running Deno with the --allow-all flag.
Code Sample
Error
3 Replies
PermissionDenied
is thrown when the operation is denied by OS, not Deno. Does your user account have appropriate access to both source and target?
Note: If the operation is denied by Deno's permission system, then NotCapable
error is thrownI have do have all perms, infact using
Deno.Command
copied the files without any issue so not sure what's going on
tho the files that i tried to copy did have the readonly flag, but
C:/Users/USER/AppData/Local/deno/latest.txt
didn't so i dont think that could be the issue