Merge pull request #188 from Techassi/typeentry-string

EntryType String() function
This commit is contained in:
Julien Laffaye 2020-07-28 13:54:05 -04:00 committed by GitHub
commit e31b4effea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
ftp.go
View File

@ -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]
}