package main

import (
    "fmt"
    "os"
    "path/filepath"
)

func walkFunc(path string, info os.FileInfo, err error) error {
    fmt.Printf("%s\n", path)
    return nil
}

func main() {
    //遍历打印所有的文件名
    filepath.Walk("C:/Documents and Settings/xxx/Desktop/Copy of change-sub", walkFunc)
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-04-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案