File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 11package clover
22
33import (
4- "io/ioutil"
54 "os"
6- "path/filepath"
7- "strings"
85)
96
10- func listDir (dir string ) ([]string , error ) {
11- fInfos , err := ioutil .ReadDir (dir )
12- if err != nil {
13- return nil , err
14- }
15-
16- filenames := make ([]string , 0 , len (fInfos ))
17- for _ , info := range fInfos {
18- filenames = append (filenames , info .Name ())
19- }
20- return filenames , nil
21- }
22-
237const defaultPermDir = 0777
248
259func makeDirIfNotExists (dir string ) error {
@@ -29,11 +13,6 @@ func makeDirIfNotExists(dir string) error {
2913 return nil
3014}
3115
32- func getBasename (filename string ) string {
33- baseName := filepath .Base (filename )
34- return strings .TrimSuffix (baseName , filepath .Ext (baseName ))
35- }
36-
3716func copyMap (m map [string ]interface {}) map [string ]interface {} {
3817 mapCopy := make (map [string ]interface {})
3918 for k , v := range m {
You can’t perform that action at this time.
0 commit comments