|
@@ -2,7 +2,6 @@ package main
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
- "io/ioutil"
|
|
|
"os"
|
|
|
"path"
|
|
|
"regexp"
|
|
@@ -22,7 +21,7 @@ func main() {
|
|
|
func GetAllFile(pathname string) ([]string, error) {
|
|
|
result := []string{}
|
|
|
|
|
|
- fis, err := ioutil.ReadDir(pathname)
|
|
|
+ fis, err := os.ReadDir(pathname)
|
|
|
if err != nil {
|
|
|
fmt.Printf("读取文件目录失败,pathname=%v, err=%v \n", pathname, err)
|
|
|
return result, err
|