fix: missing File.getHash
This commit is contained in:
@@ -55,6 +55,9 @@ class File {
|
|||||||
getLastUsedTime() {
|
getLastUsedTime() {
|
||||||
return this.bean.last_used_time
|
return this.bean.last_used_time
|
||||||
}
|
}
|
||||||
|
getHash() {
|
||||||
|
return this.bean.hash
|
||||||
|
}
|
||||||
readSync() {
|
readSync() {
|
||||||
this.setAttr("last_used_time", Date.now())
|
this.setAttr("last_used_time", Date.now())
|
||||||
return fs_sync.readFileSync(this.getFilePath())
|
return fs_sync.readFileSync(this.getFilePath())
|
||||||
|
|||||||
Reference in New Issue
Block a user