mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
Fix: Address permissions issue for UNC paths on Windows
This commit is contained in:
parent
b4fd2c3e84
commit
033370da71
1 changed files with 1 additions and 0 deletions
|
@ -1823,6 +1823,7 @@ impl PermissionsContainer {
|
|||
|
||||
// Check if the path is a UNC path (e.g., \\Server\Share\Folder)
|
||||
// UNC paths typically contain "\\" at the start or somewhere in the middle
|
||||
#[cfg(windows)]
|
||||
if s.windows(2).any(|window| window == b"\\\\") {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue