mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 18:22:10 +08:00
修复在sqlite数据库下项目成员切换权限错误的BUG
This commit is contained in:
@@ -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
|
||||
}
|
Reference in New Issue
Block a user