From 9571d82932cf73145fb622d7bc58b96ef6c280d9 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Sun, 12 Mar 2023 11:09:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=BD=AF=E8=BF=9E=E6=8E=A5=E5=A4=B1=E8=B4=A5=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/file.go b/backend/app/service/file.go index 5f392d98a..218f3ee57 100644 --- a/backend/app/service/file.go +++ b/backend/app/service/file.go @@ -97,7 +97,7 @@ func (f FileService) Create(op request.FileCreate) error { return fo.CreateDir(op.Path, fs.FileMode(op.Mode)) } else { if op.IsLink { - if !fo.Stat(op.Path) { + if !fo.Stat(op.LinkPath) { return buserr.New(constant.ErrLinkPathNotFound) } return fo.LinkFile(op.LinkPath, op.Path, op.IsSymlink)