"log"
"os"
"path"
+ "path/filepath"
"strings"
"syscall"
)
+var TmpDir string
+
type Ent struct {
name []string
mtime int64
flag.Parse()
log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds | log.Lshortfile)
+ var err error
+ TmpDir, err = filepath.Abs(*dbPath)
+ if err != nil {
+ panic(err)
+ }
+ TmpDir = path.Dir(TmpDir)
+
if *doIndex {
tmp := index()
tmp.Close()