mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
chore: makes save private (#4152)
This commit is contained in:
@@ -75,10 +75,10 @@ func UpdateFromReader(user auth.User, reader io.Reader) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return Save(user, existingProfile)
|
return save(user, existingProfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Save(user auth.User, profile Profile) error {
|
func save(user auth.User, profile Profile) error {
|
||||||
path := filepath.Join(dataPath, user.Username)
|
path := filepath.Join(dataPath, user.Username)
|
||||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||||
if err := os.Mkdir(path, 0755); err != nil {
|
if err := os.Mkdir(path, 0755); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user