From c618eba9a9c6466db70e2ce42247723b2ea6c778 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Mon, 6 Oct 2014 21:57:33 +0100 Subject: [PATCH] Implement BlockMap --- message.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/message.go b/message.go index 800787b9..b4714505 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