From 5e4b100def114ee197002eb8839fc562c1ac0518 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 15 May 2018 15:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8windows=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=8F=82=E6=95=B0=E4=B8=AD=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=86=E9=9A=94=E7=AC=A6=E5=BC=95=E8=B5=B7?= =?UTF-8?q?=E7=9A=84=E7=83=AD=E6=9B=B4=E6=96=B0=E6=9C=BA=E5=88=B6=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/os/gspath/gspath.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g/os/gspath/gspath.go b/g/os/gspath/gspath.go index 67fd3134f..39d1aac90 100644 --- a/g/os/gspath/gspath.go +++ b/g/os/gspath/gspath.go @@ -61,8 +61,8 @@ func (sp *SPath) Search(name string) string { if path == "" { sp.mu.RLock() for _, v := range sp.paths { - path = v + gfile.Separator + name - if gfile.Exists(path) { + path = gfile.RealPath(v + gfile.Separator + name) + if path != "" && gfile.Exists(path) { break } }