Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

505 B
Raw Blame
function isZero(value) {
    return value === 0 || value === 0n;
}
export function sameFileIdentity(left, right, platform = process.platform) {
    if (left.ino !== right.ino) {
        return false;
    }
    // On Windows, path-based stat calls can report dev=0 while fd-based stat
    // reports a real volume serial; treat either-side dev=0 as "unknown device".
    if (left.dev === right.dev) {
        return true;
    }
    return platform === "win32" && (isZero(left.dev) || isZero(right.dev));
}