mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Fixed bug: repeat build in Mac OS, change to check file ModTime insetad of event time
This commit is contained in:
parent
bf33c2b05c
commit
5486f6ee55
1
watch.go
1
watch.go
@ -74,6 +74,7 @@ func getFileModTime(path string) int64 {
|
|||||||
colorLog("[ERRO] Fail to open file[ %s ]", err)
|
colorLog("[ERRO] Fail to open file[ %s ]", err)
|
||||||
return time.Now().Unix()
|
return time.Now().Unix()
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
|
|
||||||
fi, err := f.Stat()
|
fi, err := f.Stat()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user