diff --git a/message.go b/message.go index 800787b91..b47145055 100644 --- a/message.go +++ b/message.go @@ -54,6 +54,10 @@ func (f FileInfo) IsInvalid() bool { return IsInvalid(f.Flags) } +func (f FileInfo) IsDirectory() bool { + return IsDirectory(f.Flags) +} + // Used for unmarshalling a FileInfo structure but skipping the actual block list type FileInfoTruncated struct { Name string // max:8192