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)