Finish the delete things for matter and cache.

This commit is contained in:
zicla
2019-04-04 02:31:26 +08:00
parent 28b4227215
commit 7697891807
7 changed files with 49 additions and 38 deletions

View File

@ -29,8 +29,7 @@ func (Matter) TableName() string {
return TABLE_PREFIX + "matter"
}
// 获取该Matter的绝对路径。path代表的是相对路径。相对路径的根目录是 CONFIG.MatterPath
// 获取该Matter的绝对路径。path代表的是相对路径。
func (this *Matter) AbsolutePath() string {
return CONFIG.MatterPath + this.Path
return GetUserFileRootDir(this.Username) + this.Path
}