修复在sqlite数据库下项目成员切换权限错误的BUG

This commit is contained in:
Minho
2017-06-02 09:27:13 +08:00
parent 186810cb4a
commit 8486bb3809
3 changed files with 29 additions and 4 deletions

View File

@@ -23,3 +23,13 @@ func AbsolutePath(p string) (string,error) {
}
return s,nil
}
// FileExists reports whether the named file or directory exists.
func FileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
return false
}
}
return true
}