aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2023-07-26 14:41:53 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-07-27 09:35:29 -0700
commit9a3adeea6ef0eb30e75e732148e0a2b93d0d0c99 (patch)
tree0b4c647651ff5e8881d29ec60242e4ba35340e4c /lib/std/start.zig
parent0f21d3d4d1a5cbb5254dbf55304347f4d5c3e9c5 (diff)
downloadzig-9a3adeea6ef0eb30e75e732148e0a2b93d0d0c99.tar.gz
zig-9a3adeea6ef0eb30e75e732148e0a2b93d0d0c99.zip
windows.OpenFile/DeleteFile: Add NetworkNotFound as a possible error
When calling NtCreateFile with a UNC path, if either `\\server` or `\\server\share` are not found, then the statuses `BAD_NETWORK_PATH` or `BAD_NETWORK_NAME` are returned (respectively). These statuses are not translated into `error.FileNotFound` because they convey more information than the typical FileNotFound error. For example, if you were trying to call `Dir.makePath` with an absolute UNC path like `\\MyServer\MyShare\a\b\c\d`, then knowing that `\\MyServer\MyShare` was not found allows for returning after trying to create the first directory instead of then trying to create `a\b\c`, `a\b`, etc. when it's already known that they will all fail in the same way.
Diffstat (limited to 'lib/std/start.zig')
0 files changed, 0 insertions, 0 deletions