fix: 修复文件复制函数中的目标目录创建逻辑,确保目录存在
This commit is contained in:
@@ -624,7 +624,7 @@ func (r NeInfo) neConfOAMRead(neType, neId string, sync bool) (map[string]any, e
|
||||
|
||||
// 读取文件内容
|
||||
bytes, err := os.ReadFile(localFilePath)
|
||||
if err != nil {
|
||||
if err != nil || len(bytes) == 0 {
|
||||
// logger.Warnf("NeConfOAMRead ReadFile => %s", err.Error())
|
||||
// return nil, fmt.Errorf("read file error")
|
||||
// 无保留文件时返回默认文件数据
|
||||
|
||||
Reference in New Issue
Block a user