Skip to content

Commit

Permalink
feat: wait before exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciroccogti committed May 4, 2020
1 parent a872707 commit d4aec02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion foldest.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func main() {
if !strings.HasSuffix(path, "/") {
path = path + "/"
}
fmt.Printf("Scanning %c[0;34m%s%c[0m ...\n", 0x1B, path, 0x1B)
info, err := os.Stat(path)
if err != nil || !info.IsDir() {
fmt.Printf("Error while scanning %c[0;34m%s%c[0m :", 0x1B, path, 0x1B)
Expand Down Expand Up @@ -164,6 +163,9 @@ func main() {
err = ioutil.WriteFile("conf.yml", yamlChanged, 0644)
}

fmt.Println("Press any key to exit...")
fmt.Scanln()

}

// GetFileModTime :获取文件修改时间 返回时间
Expand Down

0 comments on commit d4aec02

Please sign in to comment.