1
0
Fork 0
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:
yazan-abdalrahman 2024-08-21 16:27:22 +03:00
parent b4fd2c3e84
commit 033370da71

View file

@ -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;
}