mirror of
https://github.com/stablyai/orca.git
synced 2026-10-21 16:03:26 +00:00
12 lines
344 B
TypeScript
12 lines
344 B
TypeScript
import { statSync } from 'node:fs'
|
|
|
|
export function isSameExistingHostPath(left: string, right: string): boolean {
|
|
try {
|
|
const leftStat = statSync(left, { bigint: true })
|
|
const rightStat = statSync(right, { bigint: true })
|
|
return leftStat.dev === rightStat.dev && leftStat.ino === rightStat.ino
|
|
} catch {
|
|
return false
|
|
}
|
|
}
|