PermissionDenied (EACCES code) when trying to reading files from network-mapped drive #24643
Labels
permissions
related to --allow-* flags
runtime
Relates to code in the runtime crate
windows
Related to Windows platform
Version: Deno 1.45.2
My environment
Reading files from network-mapped drives doesn't seem to work. For example code
The
z:
is a network-mapped driveFile
Z:\d1\file.txt
existsthrows the following error:
The script works fine with the local files, the issue emerges only with files on the network mapped drive.
I tried on two different machines (with Windows) (a second machine without antivirus) - on both had the same behaviour.
I did some research and I found the last working version was 1.42.4. On 1.43.0 and on the latest the file read doesn't work. Yeah, I know, that's weird, I couldn't believe that as well. I'm attaching a recording to show you how it behaves on my machine.
For now, the workaround in my case is using the 1.42.4 version but it isn't an ideal solution. I hope my issue description will help to fix that in future versions :)
deno.bug.2024-07-18.185401.mp4
Steps to reproduce (similar to one from attached recording):
the output should be as follows
The text was updated successfully, but these errors were encountered: