end of day

This commit is contained in:
2025-12-30 05:36:35 -08:00
commit 82cacf484c
9 changed files with 255 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as path from 'node:path'
export default class NodeFileSystemHandle implements FileSystemHandle {
kind: FileSystemHandleKind;
name: string;
async isSameEntry(other: FileSystemHandle): Promise<boolean> {
if (typeof other != typeof this) return false
let thisName = this.name
let otherName = other.name
if (!path.isAbsolute(this.name)) thisName = path.join(process.cwd(), this.name)
if (!path.isAbsolute(other.name)) otherName = path.join(process.cwd(), other.name)
return thisName === otherName
}
}