mirror of
https://github.com/1Panel-dev/1Panel
synced 2024-11-23 08:28:34 +00:00
fix: 解决创建软连接失败的BUG
This commit is contained in:
parent
c54451c733
commit
9571d82932
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user