mirror of https://github.com/Xhofe/alist
				
				
				
			
		
			
				
	
	
		
			27 lines
		
	
	
		
			503 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			503 B
		
	
	
	
		
			Go
		
	
	
package ftp
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/alist-org/alist/v3/internal/driver"
 | 
						|
	"github.com/alist-org/alist/v3/internal/op"
 | 
						|
)
 | 
						|
 | 
						|
type Addition struct {
 | 
						|
	Address  string `json:"address" required:"true"`
 | 
						|
	Username string `json:"username" required:"true"`
 | 
						|
	Password string `json:"password" required:"true"`
 | 
						|
	driver.RootPath
 | 
						|
}
 | 
						|
 | 
						|
var config = driver.Config{
 | 
						|
	Name:        "FTP",
 | 
						|
	LocalSort:   true,
 | 
						|
	OnlyLocal:   true,
 | 
						|
	DefaultRoot: "/",
 | 
						|
}
 | 
						|
 | 
						|
func init() {
 | 
						|
	op.RegisterDriver(func() driver.Driver {
 | 
						|
		return &FTP{}
 | 
						|
	})
 | 
						|
}
 |