RFC3659: add symlink support

This commit is contained in:
Ludovic Fauvet 2016-02-02 16:37:26 +01:00
parent 79a78d10ee
commit 7240d6ebcf

2
ftp.go
View File

@ -332,6 +332,8 @@ func parseRFC3659ListLine(line string) (*Entry, error) {
e.Type = EntryTypeFolder e.Type = EntryTypeFolder
case "file": case "file":
e.Type = EntryTypeFile e.Type = EntryTypeFile
case "OS.unix=symlink":
e.Type = EntryTypeLink
} }
case "size": case "size":
e.setSize(value) e.setSize(value)