Skip to content

Commit

Permalink
🚸 Perf: 添加安全提示
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Nov 5, 2024
1 parent c0e289b commit b2ef960
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@ func main() {
log.Fatal("Usage: exif_pass <directory>")
}

// 安全 QA
log.Println("请确保已经设置了快照,程序将会直接修改文件的 exif 元数据, 建议在使用前选择少量照片进行测试后再使用")
log.Println("您确认要继续吗? (y/n)")
var confirm string
fmt.Scanln(&confirm)
if confirm != "y" {
log.Fatal("已取消")
}

// 读取目录
dir := os.Args[1]
files, err := os.ReadDir(dir)
Expand Down

0 comments on commit b2ef960

Please sign in to comment.