fix(server): order fallback file verification

This commit is contained in:
Gabriel De Andrade committed 2026-07-29 23:42:27 -04:00
1 parent 292b685509
commit 42ade0bfa0
1 file changed
+3 -5
+3 -5
View File
@@ -54,11 +54,9 @@ async function verifyFallbackHandle(
handle: NodeFSP.FileHandle,
): Promise<NodeFSP.FileHandle> {
try {
const [canonicalPath, pathInfo, handleInfo] = await Promise.all([
NodeFS.promises.realpath(absolutePath),
NodeFS.promises.stat(absolutePath),
handle.stat(),
]);
const handleInfo = await handle.stat();
const canonicalPath = await NodeFS.promises.realpath(absolutePath);
const pathInfo = await NodeFS.promises.stat(absolutePath);
if (
canonicalPath !== absolutePath ||
pathInfo.dev !== handleInfo.dev ||