Fixed issue with new and run flag

Updated tests to run final test in non gopath, with new name
This commit is contained in:
notzippy@gmail.com
2020-05-19 02:17:49 -07:00
parent 904cfa2995
commit 5070fb8be0
5 changed files with 18 additions and 8 deletions

View File

@@ -309,9 +309,13 @@ func Exists(filename string) bool {
// empty returns true if the given directory is empty.
// the directory must exist.
func Empty(dirname string) bool {
if !DirExists(dirname) {
return true
}
dir, err := os.Open(dirname)
if err != nil {
Logger.Infof("error opening directory: %s", err)
return false
}
defer func() {
_ = dir.Close()