package main
import (
"flag"
"fmt"
"os"
"path/filepath"
)
func getFilelist(path string) int {
count := 0
err := (path, func(path string, f , err error) error {
if f == nil {
return err
}
if () {
("cd directry %s\n", path)
return nil
}
if () == ".DS_Store" {
count++
println(" " + () + " is deleted")
(path)
}
return nil
})
if err != nil {
("() returned %v\n", err)
}
return count
}
func main() {
()
root := (0)
count := 0
if root == "" {
crurrent_dir, _ := (".")
count = getFilelist(crurrent_dir)
} else {
count = getFilelist(root)
}
("\n\n total number:%d\n", count)
}