[windows] nodefs (#8509)

* 100 passing fs tests

* 111 fs tests passing

* 114 passing fs tests

* 115 passing (TODO: fix path normalization for windows ntCreateFile

* all fs tests passing

* [autofix.ci] apply automated fixes

* make windows path norm smarter, fix tests

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Georgijs
2024-01-26 20:07:33 -08:00
committed by GitHub
parent 1644f341f9
commit 08c9511acc
9 changed files with 157 additions and 121 deletions

View File

@@ -1696,11 +1696,6 @@ pub fn toWDirPath(wbuf: []u16, utf8: []const u8) [:0]const u16 {
pub fn assertIsValidWindowsPath(utf8: []const u8) void {
if (Environment.allow_assert and Environment.isWindows) {
if (windowsPathIsPosixAbsolute(utf8)) {
std.debug.panic("Do not pass posix paths to windows APIs, was given '{s}' (missing a root like 'C:\\', see PosixToWinNormalizer for why this is an assertion)", .{
utf8,
});
}
if (startsWith(utf8, ":/")) {
std.debug.panic("Path passed to windows API '{s}' is almost certainly invalid. Where did the drive letter go?", .{
utf8,