func IsDir(path string) bool {
	if f, err := os.Stat(path); err == nil {
		return f.IsDir()
	}
	return false
}
IsDir reports whether a "path" is a filesystem directory.
package utils
import (
	"encoding/json"
	"fmt"
	"io"
	"mime"
	"os"
	"path"
	"path/filepath"
	"sort"
	"strings"
	"sync/atomic"
	"time"
	"github.com/fsnotify/fsnotify"
	"gopkg.in/yaml.v3"
)
func init() {
	mime.AddExtensionType(".go", "text/plain; charset=utf-8")
	mime.AddExtensionType(".mod", "text/plain; charset=utf-8")
	mime.AddExtensionType(".sum", "text/plain; charset=utf-8")
	mime.AddExtensionType(".json", "application/json; charset=utf-8")
	mime.AddExtensionType(".yaml", "application/yaml; charset=utf-8")
	mime.AddExtensionType(".yml", "application/yaml; charset=utf-8")
	mime.AddExtensionType(".toml", "application/toml; charset=utf-8")
	mime.AddExtensionType(".tml", "application/tml; charset=utf-8")
}
func NoOpReadCloser(r io.Reader) io.ReadCloser {
	return noOpCloser{r}
}
type noOpCloser struct {
	io.Reader
}
func (r noOpCloser) Close() error { return nil }
type multiCloser struct {
	io.Reader
	closers []io.ReadCloser
}
func (r multiCloser) Close() (err error) {
	for _, c := range r.closers {
		if cErr := c.Close(); cErr != nil {
			if err == nil {
				err = cErr
			} else {
				err = fmt.Errorf("%v\n%v", err, cErr)
			}
		}
	}
	return
}
func Exists(path string) bool {
	if _, err := os.Stat(path); err != nil {
		return os.IsExist(err)  
	}
	return true
}