Documentation ¶
Index ¶
- Variables
- type Auth
- type Driver
- func (d *Driver) ChangeDir(path string) (err error)
- func (d *Driver) DeleteDir(path string) (err error)
- func (d *Driver) DeleteFile(path string) (err error)
- func (d *Driver) GetFile(path string, offset int64) (size int64, fr io.ReadCloser, err error)
- func (d *Driver) Init(*ftp.Conn)
- func (d *Driver) ListDir(path string, callback func(ftp.FileInfo) error) (err error)
- func (d *Driver) MakeDir(path string) (err error)
- func (d *Driver) PutFile(path string, data io.Reader, appendData bool) (n int64, err error)
- func (d *Driver) Rename(oldName, newName string) (err error)
- func (d *Driver) Stat(path string) (fi ftp.FileInfo, err error)
- type DriverFactory
- type FileInfo
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "ftp remote:path", Short: `Serve remote:path over FTP.`, Long: ` rclone serve ftp implements a basic ftp server to serve the remote over FTP protocol. This can be viewed with a ftp client or you can make a remote of type ftp to read and write it. ` + ftpopt.Help + vfs.Help, Run: func(command *cobra.Command, args []string) { cmd.CheckArgs(1, 1, command, args) f := cmd.NewFsSrc(args) cmd.Run(false, false, command, func() error { s, err := newServer(f, &ftpflags.Opt) if err != nil { return err } return s.serve() }) }, }
Command definition for cobra
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver implementation of ftp server
func (*Driver) DeleteFile ¶
DeleteFile delete a file
type DriverFactory ¶
type DriverFactory struct {
// contains filtered or unexported fields
}
DriverFactory factory of ftp driver for each session
type FileInfo ¶
FileInfo struct to hold file info for ftp server
type Logger ¶
type Logger struct{}
Logger ftp logger output formatted message
func (*Logger) PrintCommand ¶
PrintCommand log formatted command execution
func (*Logger) PrintResponse ¶
PrintResponse log responses
Click to show internal directories.
Click to hide internal directories.