mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-18 13:25:06 +00:00
Fixed issue with new and run flag
Updated tests to run final test in non gopath, with new name
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user