|
@@ -10,7 +10,10 @@ import (
|
|
"eta/eta_data_analysis/utils"
|
|
"eta/eta_data_analysis/utils"
|
|
"fmt"
|
|
"fmt"
|
|
"io/fs"
|
|
"io/fs"
|
|
|
|
+ "os"
|
|
"path/filepath"
|
|
"path/filepath"
|
|
|
|
+ "strings"
|
|
|
|
+ "syscall"
|
|
"time"
|
|
"time"
|
|
|
|
|
|
"github.com/beego/beego/v2/task"
|
|
"github.com/beego/beego/v2/task"
|
|
@@ -158,7 +161,7 @@ func ReadWatchIndexFile() {
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
if !info.IsDir() {
|
|
if !info.IsDir() {
|
|
- /* fileInfo, err := os.Stat(path)
|
|
|
|
|
|
+ fileInfo, err := os.Stat(path)
|
|
if err != nil {
|
|
if err != nil {
|
|
fmt.Println("os.Stat:", err.Error())
|
|
fmt.Println("os.Stat:", err.Error())
|
|
}
|
|
}
|
|
@@ -203,7 +206,7 @@ func ReadWatchIndexFile() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
cacheClient.Delete(path)
|
|
cacheClient.Delete(path)
|
|
- cacheClient.Set(path, modifyTimeStr, 24*time.Hour)*/
|
|
|
|
|
|
+ cacheClient.Set(path, modifyTimeStr, 24*time.Hour)
|
|
}
|
|
}
|
|
return nil
|
|
return nil
|
|
})
|
|
})
|