Skip cleanup if dir does not exist

pull/7479/head
Jason Wilder 2016-10-18 15:33:39 -06:00
parent 1aafea2e07
commit f30b00c24f
1 changed files with 3 additions and 1 deletions

View File

@ -1149,7 +1149,9 @@ func (e *Engine) reloadCache() error {
func (e *Engine) cleanup() error {
allfiles, err := ioutil.ReadDir(e.path)
if err != nil {
if os.IsNotExist(err) {
return nil
} else if err != nil {
return err
}