mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
Compare commits
15 commits
60dee317f3
...
46a4ff8029
Author | SHA1 | Date | |
---|---|---|---|
|
46a4ff8029 | ||
|
b9b7163c46 | ||
|
aa56715d1d | ||
|
b4e11b6b37 | ||
|
dc619d09d8 | ||
|
b104d1085e | ||
|
f3456f1871 | ||
|
587b09a6fa | ||
|
53395acb26 | ||
|
033370da71 | ||
|
b4fd2c3e84 | ||
|
a725fe25a2 | ||
|
9d733782de | ||
|
735026c507 | ||
|
246271cbfe |
1 changed files with 8 additions and 0 deletions
|
@ -2884,6 +2884,14 @@ impl PermissionsContainer {
|
|||
|
||||
fn is_normalized_windows_drive_path(path: &Path) -> bool {
|
||||
let s = path.as_os_str().as_encoded_bytes();
|
||||
|
||||
// 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
|
||||
if s.windows(2).any(|window| window == b"\\\\") {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Original check for normalized drive paths (e.g., \\?\C:\)
|
||||
// \\?\X:\
|
||||
if s.len() < 7 {
|
||||
false
|
||||
|
|
Loading…
Add table
Reference in a new issue