// Copyright (c) 2013 GPMGo Members. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package utils import ( "os" ) // IsExist returns if a file or directory exists func IsExist(path string) bool { _, err := os.Stat(path) return err == nil || os.IsExist(err) }