aboutsummaryrefslogtreecommitdiff
path: root/src/resolver/resolver.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolver/resolver.zig')
-rw-r--r--src/resolver/resolver.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolver/resolver.zig b/src/resolver/resolver.zig
index 5283ce812..198c11b73 100644
--- a/src/resolver/resolver.zig
+++ b/src/resolver/resolver.zig
@@ -28,6 +28,7 @@ const Path = Fs.Path;
const NodeModuleBundle = @import("../node_module_bundle.zig").NodeModuleBundle;
const FileSystem = Fs.FileSystem;
+const File = Fs.File;
pub fn isPackagePath(path: string) bool {
// this could probably be flattened into something more optimized
@@ -562,14 +563,14 @@ pub const Resolver = struct {
var parts = [_]string{ FileSystem.instance.top_level_dir, std.fs.path.sep_str, route_dir };
const abs = FileSystem.instance.join(&parts);
// must end in trailing slash
- break :brk (std.os.realpath(abs, &buf) catch continue);
+ break :brk (File.realpath(abs, &buf) catch continue);
}
return error.MissingRouteDir;
} else {
var parts = [_]string{ FileSystem.instance.top_level_dir, std.fs.path.sep_str, pair.router.dir };
const abs = FileSystem.instance.join(&parts);
// must end in trailing slash
- break :brk std.os.realpath(abs, &buf) catch return error.MissingRouteDir;
+ break :brk File.realpath(abs, &buf) catch return error.MissingRouteDir;
}
};