-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.go
32 lines (31 loc) · 1.17 KB
/
commands.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package models
// Command formats that are used to instruct FTP server to perform a certain task.
const (
CommandQuit = "QUIT"
CommandAuthTLS = "AUTH TLS"
CommandUser = "USER %s"
CommandPass = "PASS %s"
CommandFeat = "FEAT"
CommandProtectionBufferSize = "PBSZ 0"
CommandProtocol = "PROT P"
CommandType = "TYPE I"
CommandOptions = "OPTS %s %s"
CommandStatus = "STAT"
CommandSystem = "SYST"
CommandList = "LIST %s"
CommandListHidden = "LIST -a %s"
CommandPreTransfer = "PRET %s"
CommandPassive = "PASV"
CommandExtendedPassiveMode = "EPSV"
CommandRestartTransfer = "REST %d"
CommandListMachineReadable = "MLSD %s"
CommandStore = "STOR %s"
CommandMakeDir = "MKD %s"
CommandChangeWorkDir = "CWD %s"
CommandSize = "SIZE %s"
CommandRemoveFile = "DELE %s"
CommandRemoveDir = "RMD %s"
CommandRenameFrom = "RNFR %s"
CommandRenameTo = "RNTO %s"
CommandRetrieve = "RETR %s"
)