Use ioutil.ReadDir for backward compatibility (#57)

master
Chand Anand 3 years ago committed by GitHub
parent 8262ff8700
commit e81ece1e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,10 +2,10 @@ package main
import (
"io/ioutil"
"strings"
"path"
"os"
"os/exec"
"path"
"strings"
"gopkg.in/yaml.v2"
)
@ -70,7 +70,7 @@ func ParseConfig(data string) (Config, error) {
func ListConfigs(dir string) ([]string, error) {
var result []string
files, err := os.ReadDir(dir)
files, err := ioutil.ReadDir(dir)
if err != nil {
return result, err

Loading…
Cancel
Save