mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 23:51:15 +00:00
feat: add FTP storage functionality with API integration
This commit is contained in:
@@ -43,6 +43,14 @@ func NewStorage(s model.Storage) IStorage {
|
||||
return nil
|
||||
}
|
||||
return &r
|
||||
|
||||
case "ftp":
|
||||
r := FTPStorage{}
|
||||
err := r.FromString(s.Config)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return &r
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user