mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user