fix: missing File.getHash

This commit is contained in:
CrescentLeaf
2025-09-08 22:46:31 +08:00
parent 39c1473c57
commit 4ca3bd44da

View File

@@ -55,6 +55,9 @@ class File {
getLastUsedTime() {
return this.bean.last_used_time
}
getHash() {
return this.bean.hash
}
readSync() {
this.setAttr("last_used_time", Date.now())
return fs_sync.readFileSync(this.getFilePath())