This commit is contained in:
Liang Ding 2014-09-30 16:27:01 +08:00
parent b24bcb7d2c
commit 46f6fd6546
1 changed files with 7 additions and 0 deletions

View File

@ -120,6 +120,13 @@ func (*conf) GetUserWorkspace(username string) string {
return "" return ""
} }
// 获取工作空间路径.
func (user *User) getWorkspace() string {
ret := strings.Replace(user.Workspace, "{pwd}", Wide.Pwd, 1)
return filepath.FromSlash(ret)
}
// 获取 username 指定的用户配置. // 获取 username 指定的用户配置.
func (*conf) GetUser(username string) *User { func (*conf) GetUser(username string) *User {
for _, user := range Wide.Users { for _, user := range Wide.Users {