From 14a168c9086ffec8c7de25d9aa1332faf8a06e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camille=20Eyri=C3=A8s?= Date: Sun, 22 Oct 2017 00:55:34 +0200 Subject: [PATCH] export isDir --- connect.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connect.go b/connect.go index 208c6181..49c277d3 100644 --- a/connect.go +++ b/connect.go @@ -38,7 +38,7 @@ type FileMetaData struct { Size int Hash string Path string - isDir bool + IsDir bool } const ( @@ -74,8 +74,8 @@ func NewConnection(flags *Flags) *Connection { // now, we change the target file name to match the new archive created flags.File = tmpTarGzFileName - // we set the value isDir to true - c.File.isDir = true + // we set the value IsDir to true + c.File.IsDir = true fmt.Println("Done !") c.File.Name = path.Base(tmpTarGzFileName) } else { @@ -180,7 +180,7 @@ func (c *Connection) Run() error { } // remove compressed archive - if c.File.isDir { + if c.File.IsDir { if err := os.Remove(tmpTarGzFileName); err != nil { return err }