Merge pull request #188 from Techassi/typeentry-string
EntryType String() function
This commit is contained in:
commit
e31b4effea
5
ftp.go
5
ftp.go
@ -810,3 +810,8 @@ func (r *Response) Close() error {
|
||||
func (r *Response) SetDeadline(t time.Time) error {
|
||||
return r.conn.SetDeadline(t)
|
||||
}
|
||||
|
||||
// String returns the string representation of EntryType t.
|
||||
func (t EntryType) String() string {
|
||||
return [...]string{"file", "folder", "link"}[t]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user