Skip to content

create file fail with special name in windows env #23

@bingtianyiyan

Description

@bingtianyiyan

func (l *LocalStorage) Save(key string, data []byte) error {
path := filepath.Join(l.root, key)
filePath := filepath.Dir(path)
if err := os.MkdirAll(filePath, 0o755); err != nil {
return err
}

return os.WriteFile(path, data, 0o644)

}

dify pluge model provider like langgenius/deepseek:0.0.11@35bcd3f233f99d07bdadef8b326945df3bda5e8f773330144bc90d84800336b9 this os.WriteFile(path, data, 0o644) is error, you should return error info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions