From 46f6fd65469f78fb907243286ac1f539aa6aa5b1 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 30 Sep 2014 16:27:01 +0800 Subject: [PATCH] . --- conf/wide.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/wide.go b/conf/wide.go index 8e7eb24..3fb0514 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -120,6 +120,13 @@ func (*conf) GetUserWorkspace(username string) string { return "" } +// 获取工作空间路径. +func (user *User) getWorkspace() string { + ret := strings.Replace(user.Workspace, "{pwd}", Wide.Pwd, 1) + + return filepath.FromSlash(ret) +} + // 获取 username 指定的用户配置. func (*conf) GetUser(username string) *User { for _, user := range Wide.Users {