diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-07-26 14:41:53 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-27 09:35:29 -0700 |
| commit | 9a3adeea6ef0eb30e75e732148e0a2b93d0d0c99 (patch) | |
| tree | 0b4c647651ff5e8881d29ec60242e4ba35340e4c /test/behavior/error.zig | |
| parent | 0f21d3d4d1a5cbb5254dbf55304347f4d5c3e9c5 (diff) | |
| download | zig-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 'test/behavior/error.zig')
0 files changed, 0 insertions, 0 deletions
